Commits

Colin Copeland committed f0f3391

use parents() to traverse sufficient amount up DOM tree; remove proper input on page load (newInput didn't exist)

  • Participants
  • Parent commits d6a174c

Comments (0)

Files changed (1)

File selectable/static/js/jquery.dj.selectable.js

                                 text: false
                             })
                             .click(function() {
-                                newInput.remove();
-                                $(this).parent('li').remove();
+                                $(elem).remove();
+                                $(this).parents('li').remove();
                             })
                         )
                     );
                                     })
                                     .click(function() {
                                         newInput.remove();
-                                        $(this).parent('li').remove();
+                                        $(this).parents('li').remove();
                                     })
                                 )
                             );