paypal
[wolnelektury.git] / src / wolnelektury / static / js / base.js
index 8502d62..377a969 100644 (file)
             $("iframe", this).attr("src", $("iframe", this).attr('data-src'));
         });
 
-        $(".media-eink .carousel").cycle({fx: "none"});
+        $(".carousel").each(function() {
+            opts = {};
+            if ($('html').hasClass('media-eink')) {
+                opts.fx = 'none'
+            }
+            $(this).cycle(opts);
+        });
 
 
         (function() {
             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);