Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Clean up JS
Paweł Kowalewskic34bc32a2a9c
diff --git a/saleor/cart/static/js/delete_buttons.js b/saleor/cart/static/js/delete_buttons.jsindex 01615272a1..78b7b035fa 100644--- a/saleor/cart/static/js/delete_buttons.js+++ b/saleor/cart/static/js/delete_buttons.js@@ -8,5 +8,5 @@ $.fn.addDeleteButtons = function() {});this.find('.delete-button').click(function(){$(this).parents('tr').find('input[type="number"]').val('0');- })+ });};diff --git a/saleor/static/js_src/dashboard.js b/saleor/static/js_src/dashboard.jsindex 1f85dc2b3f..49bb4c8fbf 100644--- a/saleor/static/js_src/dashboard.js+++ b/saleor/static/js_src/dashboard.js@@ -73,7 +73,7 @@ $(document).ready(function() {$('.modal-close').click();}},- success: function(response) {+ success: function() {location.reload();}});@@ -123,7 +123,7 @@ Dropzone.options.productImageForm = {};var el = document.getElementById('product-gallery');if (el) {- var sortable = Sortable.create(el, {+ Sortable.create(el, {handle: '.card-image',onUpdate: function () {$.ajax({@@ -132,7 +132,7 @@ if (el) {data: JSON.stringify({'order': (function () {var postData = [];- $(el).find('.product-gallery-item[data-id]').each(function (i) {+ $(el).find('.product-gallery-item[data-id]').each(function() {postData.push($(this).data('id'));});return postData;