slight change
authorAndrew Magliozzi <andrew.magliozzi@gmail.com>
Tue, 24 Sep 2013 19:29:53 +0000 (15:29 -0400)
committerAndrew Magliozzi <andrew.magliozzi@gmail.com>
Tue, 24 Sep 2013 19:29:53 +0000 (15:29 -0400)
karmaworld/templates/partial/filepicker.html

index ec7dc6dd5c79832d6ed2eab64ae7e0118bf59de0..b0c54a653505577f9d078e4ad2d74742f8b9a82c 100644 (file)
@@ -47,7 +47,7 @@
           <input type="text" class="csrf" value='{{ csrf_token }}'>
         </div>
         <div class="show-for-medium-up columns large-1 end">
-          <i class="icon-remove-sign awesome-action"></i>
+          <i class="icon-remove-sign awesome-action" id="icon-remove-sign"></i>
         </div>
       </form>
     </div>
         });
       });
 
-      $('#icon-remove-sign').on('click', function(e){
+      $('.remove').on('click', function(e){
         e.stopPropagation();
-        console.log($(this).parent());
-        $(this).parent().remove();
+        console.log($(this).parent().parent());
+        $(this).parent().parent().remove();
       });
     });
   // TODO: js to submit all forms as POST to NEW ENDPOINT