File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/jet-engine/includes/modules/performance/inc/assets/js/dashboard-tab.js
Back
Vue.component( 'jet-engine-tab-performance', { name: 'jet-engine-tab-performance', template: '#jet-engine-tab-performance', data: function() { return { tweaks: { ...window.JetEngineDashboardConfig._config__performance.saved }, saving: false, }; }, methods: { saveTweaks() { this.saving = true; jQuery.ajax({ url: window.ajaxurl, type: 'POST', dataType: 'json', data: { action: 'jet_engine_dashboard_save_tweaks', nonce: window.JetEngineDashboardConfig._nonce, tweaks: this.tweaks, }, } ).done( ( response ) => { this.saving = false; if ( response.success ) { this.$CXNotice.add( { message: response.data.message, type: 'success', } ); } else { this.$CXNotice.add( { message: response.data.message, type: 'error', } ); } } ).fail( ( jqXHR, textStatus, errorThrown ) => { this.saving = false; this.$CXNotice.add( { message: jqXHR.statusText, type: 'error', } ); } ); } }, } );
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.14 |
proxy
|
phpinfo
|
Settings