Skip to content

Commit

Permalink
finessed to add event handler only on button in replaced row
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Jan 18, 2025
1 parent f7a86c5 commit b890975
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/templates/default/review.shelf.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@
tr.remove();
});
} else {
tr.replaceWith(response.html);
$('.review-shelf button').off().on('click', doOp);
var row = $(response.html);
row.find('button').on('click', doOp);
tr.replaceWith(row);
}
});
}
Expand Down

0 comments on commit b890975

Please sign in to comment.