From: Andrew Magliozzi Date: Tue, 24 Sep 2013 19:24:12 +0000 (-0400) Subject: first pass at the X to remove files from the upload form X-Git-Tag: release-20150131~386^2~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7ca1a2d0ba2b571ab976eb4dec164a8553c9ab19;p=oweals%2Fkarmaworld.git first pass at the X to remove files from the upload form --- diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index ff2f5f9..aef818c 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -35,6 +35,9 @@ +
+ +
+
+ +
@@ -149,6 +155,11 @@ }); }); }); + + $('#icon-remove-sign').on('click', function(e){ + e.stopPropagation(); + $(this).parent().remove(); + }); }); // TODO: js to submit all forms as POST to NEW ENDPOINT // TODO: Cancel (x) for each upload