Commits

Kai Diefenbach committed 79e21b5

Moved update_checkout() out of

Comments (0)

Files changed (1)

lfs/static/js/lfs.js

     w.focus();
 }
 
+// Update checkout
+var update_checkout = function() {
+    var data = $(".checkout-form").ajaxSubmit({
+        url : $(".checkout-form").attr("data"),
+        "success" : function(data) {
+            var data = JSON.parse(data);
+            $("#cart-inline").html(data["cart"]);
+            $("#shipping-inline").html(data["shipping"]);
+            $("#payment-inline").html(data["payment"]);
+        }
+    });
+}
+
 $(function() {
 
     // Delay plugin taken from ###############################################
         }
     })
 
-    // Update checkout
-    var update_checkout = function() {
-        var data = $(".checkout-form").ajaxSubmit({
-            url : $(".checkout-form").attr("data"),
-            "success" : function(data) {
-                var data = JSON.parse(data);
-                $("#cart-inline").html(data["cart"]);
-                $("#shipping-inline").html(data["shipping"]);
-                $("#payment-inline").html(data["payment"]);
-            }
-        });
-    }
-
     $(".update-checkout").livequery("click", function() {
         update_checkout()
     });