/home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/res/js
NameSizeModeActions
cookies/-0755rm
display-as-translated/-0755rm
languages/-0755rm
mcs/-0755rm
media/-0755rm
requirements/-0755rm
settings/-0755rm
shared/-0755rm
taxonomy-translation/-0755rm
tm-dashboard/-0755rm
tooltip/-0755rm
tp-polling/-0755rm
translation-editor/-0755rm
translation-feedback/-0755rm
affiliate-info.js8240644editdlrm
ate-dashboard.php16240644editdlrm
ate-jobs-migration.js6280644editdlrm
ate-widget.php14760644editdlrm
clear-preferred-ts.js14300644editdlrm
content-translation.js51820644editdlrm
dismiss-taxonomy-help-notice.js5640644editdlrm
fix-tables-collation.js7340644editdlrm
fix-tp-id.js7330644editdlrm
icl-admin-notifier.js19350644editdlrm
iframeResizer.min.js55710644editdlrm
jquery.cookie.js28170644editdlrm
language-switchers-settings.js303500644editdlrm
language-switchers-settings.min.js146690644editdlrm
languages.js226990644editdlrm
menus-sync.js58810644editdlrm
orphan-comments.js26270644editdlrm
otgs-notices.js36290644editdlrm
overview.js2700644editdlrm
post-edit-alert.js14480644editdlrm
post-edit-languages.js23900644editdlrm
post-edit-terms.js54820644editdlrm
post-edit.js168350644editdlrm
post-list-quickedit.js15150644editdlrm
refresh-services.js5840644editdlrm
reset-preferred-ts.js13400644editdlrm
reset-pro-trans-config.js25600644editdlrm
scripts-tm.js83940644editdlrm
scripts.js194150644editdlrm
set-translation-role.js20470644editdlrm
sitepress.js3060644editdlrm
support-tm-logs.js159560644editdlrm
tags.js73000644editdlrm
taxonomy-hierarchy-sync-message.js7240644editdlrm
templates-compiled.js367080644editdlrm
theme-localization.js21650644editdlrm
theme-plugin-localization.js19790644editdlrm
translation-options.js2600644editdlrm
translation-proxy.js3680644editdlrm
translation-roles-select2.js16480644editdlrm
translation-services.js110490644editdlrm
translation-synchronization.js2600644editdlrm
troubleshooting.js81400644editdlrm
unlisted-translation-service.js62760644editdlrm
widgets.js6630644editdlrm
widgets.min.js3960644editdlrm
wizard.js44220644editdlrm
wp-nav-menus.js15980644editdlrm
wpml-color-picker.js10210644editdlrm
wpml-progressbar.js18110644editdlrm
wpml-proxy-interceptor.js82720644editdlrm
wpml-simple-language-selector.js13370644editdlrm
wpml-simple-language-selector.min.js9590644editdlrm
wpml-tp-api.js12230644editdlrm
wpml-user-language.js8850644editdlrm
xdomain-data.js33730644editdlrm
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/res/js/wizard.js (4422B)
/*global ajaxurl, _ */ var WPMLCore = WPMLCore || {}; WPMLCore.wizardFramework = function ( $, wizardImplementation ) { "use strict"; var self = this; var init = function () { self.storage = {}; self.backButton = $( '.js-wizard-back' ); self.nextButton = $( '.js-wizard-next' ); self.stepContent = $( '.js-wizard-step-content' ); self.nonce = $( '.js-wpml-wizard' ).data( 'nonce' ); self.steps = $( '.js-wizard-step' ); self.currentStep = self.getCurrentStep(); self.getCurrentStepIndex(); self.initializeButtons(); wizardImplementation.notifyCurrentStep( self.currentStep ); self.fetchContent(); self.hideNotices(); self.hideScreenOptions(); }; var showElement = function ( element, state ) { if ( state ) { element.show(); } else { element.hide(); } }; self.moveToStep = function ( newStep ) { var beforeCurrentStepClass = 'wizard-active-step'; self.steps.removeClass( beforeCurrentStepClass ); self.steps.each( function ( index ) { if ( index === self.currentStepIndex ) { $( this ).removeClass( 'wizard-current-step' ); } if ( index === newStep ) { self.currentStep = $( this ).addClass( 'wizard-current-step' ).data( 'step-slug' ); beforeCurrentStepClass = ''; } if ( beforeCurrentStepClass ) { $( this ).addClass( beforeCurrentStepClass ); } } ); self.currentStepIndex = newStep; self.setBackButtonState(); self.setNextButtonState(); self.fetchContent(); }; self.showSteps = function ( state ) { showElement( $( '.js-wizard-steps-container' ), state ); }; self.moveToNextStep = function ( e ) { wizardImplementation.isOkToMoveToNextStep( self.currentStep, function () { self.moveToStep( self.currentStepIndex + 1 ); } ); }; self.moveToPreviousStep = function ( e ) { self.moveToStep( self.currentStepIndex - 1 ); }; self.getCurrentStepIndex = function () { self.steps.each( function ( index ) { if ( self.currentStep === $( this ).data( 'step-slug' ) ) { self.currentStepIndex = index; } } ); }; self.getCurrentStep = function () { return self.stepContent.data( 'current-step' ); }; self.initializeButtons = function () { self.backButton.on( 'click', self.moveToPreviousStep ); self.nextButton.on( 'click', self.moveToNextStep ); self.setBackButtonState(); self.setNextButtonState(); }; self.setBackButtonState = function () { self.backButton.prop( 'disabled', self.currentStepIndex === 0 ); }; self.setNextButtonState = function () { self.enableNextButton( self.currentStepIndex !== self.steps.length - 1 ); }; self.fetchContent = function ( data ) { if ( !data ) { data = {}; } data = _.extend( data, { action: 'wpml_wizard_fetch_content', step_slug: self.currentStep, nonce: self.nonce } ); $.ajax( { type: 'POST', url: ajaxurl, dataType: 'json', data: data, success: function ( response ) { $( '.js-wpml-wizard' ).show(); if ( response.success ) { self.stepContent.html( response.data ); wizardImplementation.notifyContentFetched( self.currentStep, self.stepContent ); } } } ); }; self.showBackButton = function ( state ) { showElement( self.backButton, state ); }; self.showNextButton = function ( state ) { showElement( self.nextButton, state ); }; self.setNextButtonText = function ( text ) { self.nextButton.html( text ); }; self.enableNextButton = function ( state ) { self.nextButton.prop( 'disabled', ! state ); }; self.setNextButtonPrimary = function ( state ) { if ( state ) { self.nextButton.addClass( 'button-primary' ).removeClass( 'button-secondary' ); } else { self.nextButton.addClass( 'button-secondary' ).removeClass( 'button-primary' ); } }; self.triggerNextStep = function () { self.nextButton.trigger( 'click' ); }; self.storeData = function ( key, data ) { self.storage[ key ] = data; }; self.getData = function ( key, defaultValue ) { if ( self.storage[ key ] ) { return self.storage[ key ]; } else { return defaultValue; } }; self.hideNotices = function () { $( '.otgs-notice, .icl_admin_message' ).hide(); }; self.hideScreenOptions = function () { $( '#screen-meta-links' ).hide(); }; init(); }; WPMLCore.wizardFrameworkFactory = { create: function ( $, wizardImplementation ) { "use strict"; return new WPMLCore.wizardFramework( $, wizardImplementation ); } };