cl01/wp-content/plugins/enlighter/resources/extensions/jquery-ajaxcomplete.js
2025-02-24 12:39:24 +08:00

20 lines
497 B
JavaScript
Executable File

// scope
(function(_window){
// jquery available ?
if (typeof jQuery === "undefined"){
return;
};
// content update event
jQuery(document).on('ajaxComplete', function(){
// enlighterJS available ?
if (typeof EnlighterJSINIT === "undefined"){
return;
}
// delay action to allow event handlers to be added
_window.setTimeout(function(){
EnlighterJSINIT.apply(_window);
}, 180);
});
})(window);