ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
sites
/
naresh-newwordpress
/
wp-content
/
plugins
/
hummingbird-performance
/
_src
/
js
/
modules
/
Upload FileeE
HOME
/* global WPHB_Admin */ /* global SUI */ import Fetcher from '../utils/fetcher'; ( function( $ ) { WPHB_Admin.dashboard = { module: 'dashboard', init() { $( '.wphb-performance-report-item' ).on( 'click', function() { const url = $( this ).data( 'performance-url' ); if ( url ) { location.href = url; } } ); const clearCacheModalButton = document.getElementById( 'clear-cache-modal-button' ); if ( clearCacheModalButton ) { clearCacheModalButton.addEventListener( 'click', this.clearCache ); } // Delay JS checkbox update status. const dashboardDelay = $( '#view_delay_dashboard' ); dashboardDelay.on( 'change', function() { // Update Delay JS status. const delayValue = $( this ).is( ':checked' ); Fetcher.minification.toggleDelayJs( delayValue ).then( ( response ) => { window.wphbMixPanel.trackDelayJSEvent( { 'update_type': (response.delay_js) ? 'activate' : 'deactivate', 'Location': 'dash_widget', 'Timeout': response.delay_js_timeout, 'Excluded Files': (response.delay_js_exclude) ? 'yes' : 'no', } ); WPHB_Admin.notices.show(); } ); } ); return this; }, /** * Clear selected cache. * * @since 2.7.1 */ clearCache() { this.classList.toggle( 'sui-button-onload-text' ); const checkboxes = document.querySelectorAll( 'input[type="checkbox"]' ); const modules = []; for ( let i = 0; i < checkboxes.length; i++ ) { if ( false === checkboxes[ i ].checked ) { continue; } modules.push( checkboxes[ i ].dataset.module ); } Fetcher.common.clearCaches( modules ).then( ( response ) => { this.classList.toggle( 'sui-button-onload-text' ); SUI.closeModal(); WPHB_Admin.notices.show( response.message ); } ); }, /** * Hide upgrade summary modal. */ hideUpgradeSummary: () => { window.SUI.closeModal(); Fetcher.common.call( 'wphb_hide_upgrade_summary' ); }, }; }( jQuery ) );