Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/gg.corals.io/wp-content/themes/bugster/plugins/elementor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/gg.corals.io/wp-content/themes/bugster/plugins/elementor/elementor-editor.js
/* global jQuery:false, elementor:false */

jQuery( document ).ready(
	function() {
		"use strict";

		// Reload preview after any page setting is changed
		if (window.elementor !== undefined) {
			var timer        = null;
			var save_options = _.throttle( function() { elementor.saver.doAutoSave(); }, 3000, {leading: false} );
			jQuery( '#elementor-panel' )
				.on( 'input change', '[data-setting*="bugster_options_"]', function (e) {
					var tab         = jQuery( '.elementor-panel-navigation-tab.elementor-active' ),
					tab_name        = tab.length > 0 ? tab.data( 'tab' ) : '',
					section         = jQuery( this ).parents( '.elementor-control' ).prevAll( '.elementor-control-type-section' ),
					section_classes = section.length > 0 ? section.attr( 'class' ).split( ' ' ) : [],
					section_name    = '';
					for (var i = 0; i < section_classes.length; i++) {
						if (section_classes[i].indexOf( 'elementor-control-section_' ) >= 0) {
							section_name = section_classes[i].replace( 'elementor-control-', '' );
							break;
						}
					}

					// Trigger Elementor's save procedure
					save_options();					// Save options after 3sec
					//elementor.saver.doAutoSave();	// Save immediately

					// Refresh Preview area and restore active tab
					if (tab.length > 0 && section_name !== '') {
						if (timer !== null) {
							clearTimeout( timer );
						}
						timer = setTimeout(
							function() {
								elementor.reloadPreview();
								elementor.once(
									'preview:loaded', function() {
										// Restore panel with the 'Page settings'
										var panel = jQuery( '#elementor-panel-footer-settings' );
										if (panel.length > 0) {
											panel.trigger( 'click' );
										}

										// Trigger 'click' on the last opened tab (if not first)
										tab = jQuery( '.elementor-panel-navigation-tab[data-tab="' + tab_name + '"]' );
										if (tab.length > 0 && tab.parent().find( '.elementor-panel-navigation-tab' ).eq( 0 ).data( 'tab' ) != tab_name) {
											tab.find( 'a' ).trigger( 'click' );
										}

										// Trigger 'click' on the last opened section (if not first)
										section = jQuery( '.elementor-control-' + section_name );
										if (section.length > 0 && ! section.parent().find( '.elementor-control' ).eq( 0 ).hasClass( 'elementor-control-' + section_name )) {
											section.trigger( 'click' );
										}
									}
								);
							}, 4500
						);	// Reload page after the AJAX-call 'Save page options' appear (Elementor call save options after 3000ms)
					}

					// Refresh link 'xxx_post_editor'
					var link = jQuery( this ).parents( '.elementor-control' ).find( 'a.bugster_post_editor' );
					if ( link.length > 0 ) {
						bugster_change_post_edit_link_elementor( link );
					}
				} )
				.on( 'click', '.bugster_post_editor', function(e) {
					bugster_change_post_edit_link_elementor( jQuery(this) );
					if (jQuery(this).hasClass('bugster_hidden' )) {
						e.preventDefault();
						return false;
					}
				});
		}

		function bugster_change_post_edit_link_elementor(a) {
			if (a.length > 0) {
				var sel = a.parents('.elementor-control').find('select'),
					val = sel.val();
				if (sel.length == 0 || val == null || val == 'inherit') {
					a.addClass( 'bugster_hidden' );
				} else {
					var id = ('' + val).split( '-' ).pop();
					a.attr( 'href', a.attr( 'href' ).replace( /post=[0-9]{1,5}/, "post=" + id ) );
					if (id == 0 || id == 'none') {
						a.addClass( 'bugster_hidden' );
					} else {
						a.removeClass( 'bugster_hidden' );
					}
				}
			}
		}
	}
);

Spamworldpro Mini