Merge pull request #594 from mapado/nr-add_trigger_for_post_ajax_action

This commit is contained in:
Amauri CHAMPEAUX 2021-03-06 19:54:25 +01:00 committed by GitHub
commit e26cf1be6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1834,5 +1834,14 @@ var tarteaucitron = {
e.attachEvent("onclick", func); e.attachEvent("onclick", func);
} }
} }
},
"triggerJobsAfterAjaxCall": function() {
tarteaucitron.job.forEach(function(e) { tarteaucitron.job.push(e) });
var allowBtns = document.getElementsByClassName("tarteaucitronAllow");
for (i = 0; i < allowBtns.length; i++) {
tarteaucitron.addClickEventToElement(allowBtns[i], function () {
tarteaucitron.userInterface.respond(this, true);
});
}
} }
}; };