You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
(function($){
|
|
|
|
EHF_EPRO_Compatibility = {
|
|
|
|
/**
|
|
* Binds events for the Elementor Header Footer.
|
|
*
|
|
* @since 1.4.0
|
|
* @access private
|
|
* @method _bind
|
|
*/
|
|
init: function() {
|
|
elementor.on( "document:loaded", function() {
|
|
setTimeout( function() {
|
|
jQuery.each( elementorFrontend.documentsManager.documents, function ( index, document ) {
|
|
var $documentElement = document.$element;
|
|
var ids_array = JSON.parse( hfe_admin.ids_array );
|
|
ids_array.forEach( function( item, index ){
|
|
var elementor_id = $documentElement.data( 'elementor-id' );
|
|
if( elementor_id == ids_array[index].id ){
|
|
$documentElement.find( '.elementor-document-handle__title' ).text( elementor.translate('edit_element', [ids_array[index].value] ) );
|
|
}
|
|
} );
|
|
});
|
|
}, 1000 );
|
|
});
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Initialize EHF_EPRO_Compatibility
|
|
*/
|
|
$(function(){
|
|
EHF_EPRO_Compatibility.init();
|
|
});
|
|
|
|
})(jQuery);
|