We have a addonEvent function to perform some scripts after ajax call.
But if there are more than one ajax calls, the scripts are not executed.
$(document).ready(function() {
jsf.ajax.addOnEvent(function(data) {
if (data.status === 'success') {
// do something
}
});
});
Is there any way to execute the scripts?
try placing the
addOnEventinside the