Merge pull request #594 from mapado/nr-add_trigger_for_post_ajax_action
This commit is contained in:
commit
e26cf1be6d
|
|
@ -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);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue