From 7ca1a2d0ba2b571ab976eb4dec164a8553c9ab19 Mon Sep 17 00:00:00 2001 From: Andrew Magliozzi Date: Tue, 24 Sep 2013 15:24:12 -0400 Subject: [PATCH] first pass at the X to remove files from the upload form --- karmaworld/templates/partial/filepicker.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.25.1