Add event for deny button on triggerJobsAfterAjaxCall

This commit is contained in:
Amauri CHAMPEAUX 2021-03-23 12:10:28 +01:00
parent cb221b2071
commit 65eef142b6
1 changed files with 6 additions and 0 deletions

View File

@ -1844,5 +1844,11 @@ var tarteaucitron = {
tarteaucitron.userInterface.respond(this, true); tarteaucitron.userInterface.respond(this, true);
}); });
} }
var denyBtns = document.getElementsByClassName("tarteaucitronDeny");
for (i = 0; i < denyBtns.length; i++) {
tarteaucitron.addClickEventToElement(denyBtns[i], function () {
tarteaucitron.userInterface.respond(this, false);
});
}
} }
}; };