remove unnecessary js
authorFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:54:06 +0000 (11:54 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:54:06 +0000 (11:54 +0200)
panikweb_templates/static/js/combo.gallery.js [deleted file]

diff --git a/panikweb_templates/static/js/combo.gallery.js b/panikweb_templates/static/js/combo.gallery.js
deleted file mode 100644 (file)
index a91e714..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-function gallery(element) {
-  var element_id = '#' + $(element).attr('id');
-  $(element).sortable({
-    items: '> li',
-    containment: 'parent',
-    placeholder: 'empty-image',
-    update: function(event, ui) {
-      var new_order = $(element).find('> li').map(function() { return $(this).data('object-id'); }).get().join();
-      $.ajax({
-        url: $(element).data('order-url'),
-        data: {'new-order': new_order},
-        success: function(data, status) {
-          $(element).replaceWith($(data).find(element_id));
-          gallery($(element_id));
-        }
-      });
-    }
-  });
-  $('.image-delete').on('click', function() {
-    $.ajax({
-      url: $(this).attr('href'),
-      success: function(data, status) {
-        $(element).replaceWith($(data).find(element_id));
-        gallery($(element_id));
-      }
-    });
-    return false;
-  });
-};