Commits

Mark Lavin committed 2b54f5f

Remove closest <li> parent rather than all. Fixes #9.

  • Participants
  • Parent commits 19904c5

Comments (0)

Files changed (1)

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

                             })
                             .click(function() {
                                 $(elem).remove();
-                                $(this).parents('li').remove();
+                                $(this).closest('li').remove();
                             })
                         )
                     );
                                     })
                                     .click(function() {
                                         newInput.remove();
-                                        $(this).parents('li').remove();
+                                        $(this).closest('li').remove();
                                     })
                                 )
                             );