mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Fixes too many events getting bound to a onclick event, by removing them before attaching the event listener again
This commit is contained in:
parent
f67b8d05c7
commit
c6ef14290a
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
// Sets callbacks for toggling checkboxes
|
||||
function applyCheckboxCallBack() {
|
||||
$("[data-action='check-item']").on('click', function(e){
|
||||
$("[data-action='check-item']").off().on('click', function(e){
|
||||
var checkboxitem = $(this).find("input");
|
||||
var checked = checkboxitem.is(":checked");
|
||||
$.ajax({
|
||||
|
|
Loading…
Reference in a new issue