Current Path : /storage/v11800/leadideascloud/public_html/wp-content/plugins/header-footer-elementor/inc/js/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/leadideascloud/public_html/wp-content/plugins/header-footer-elementor/inc/js/hfe-elementor-pro-compatibility.js |
(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);