Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/admin/assets/js/elementor/ |
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/affypharma/public_html/wp-content/plugins/auxin-pro-tools/admin/assets/js/elementor/editor.js |
/**
* Initialize all modules
*/
;(function($, window, document, undefined){
$( window ).on( 'elementor:init', function() {
// Add auxin specific css class to elementor body
$('.elementor-editor-active').addClass('auxin-pro');
// Enables the live preview for Page Cover in Elementor Editor
function auxPageCover ( panel, model, view ) {
view.listenTo( model.get( 'settings' ), 'change', function( changedModel ){
if ( '' !== model.getSetting('aux_page_cover') && view.$el.hasClass('aux-page-cover-wrapper') ) {
view.render();
}
},view);
}
elementor.hooks.addAction( 'panel/open_editor/section', auxPageCover );
});
})(jQuery, window, document);