Advertisement
jrrewers

Untitled

Feb 5th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $parent.on("click", "button.editMovie", function (e) {
  2.     $parLi = $(e.target).closest("li");
  3.     if ($parLi.hasClass('contenteditable')) {
  4.         // ajax
  5.     } else {
  6.         $parLi.attr('contenteditable', true);
  7.         $parLi.addClass('contenteditable');
  8.     }
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement