X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e89f0663d3ef7ccbf2b51e400430695fb2421b6f..d57cd71379f89196addaa90d1c14a17a359f35d3:/src/wolnelektury/static/js/base.js?ds=inline diff --git a/src/wolnelektury/static/js/base.js b/src/wolnelektury/static/js/base.js index 7d311fce3..377a969c0 100644 --- a/src/wolnelektury/static/js/base.js +++ b/src/wolnelektury/static/js/base.js @@ -355,6 +355,13 @@ return false; }); + $("#id_method").val('payu-re'); + $(".methods .button").click(function() { + $("#id_method").val($(this).attr('data-method')); + $(".methods .button").removeClass('active'); + $(this).addClass("active"); + }); + }); })(jQuery);