Files
Testing/tbb/wp-content/plugins/w3-total-cache/Extension_CloudFlare_View_Dashboard.js
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

16 lines
730 B
JavaScript

jQuery(function() {
jQuery('#w3tc_dashboard [type=submit]').bind('click', function(){
jQuery(this).attr('was_clicked','yes');
});
jQuery('#w3tc_dashboard').submit(function(event) {
var el = jQuery("[was_clicked=yes]").get(0);
if (el.id == 'flush_all') {
if (!confirm('Purging your site\'s CloudFlare cache will remove all CloudFlare cache files. It may take up to 48 hours for the CloudFlare cache to completely rebuild on CloudFlare\'s global network. Are you sure you want to purge CloudFlare the cache? Clicking cancel will cancel "empty all caches".')) {
event.preventDefault();
}
}
jQuery(el).removeAttr("was_clicked");
});
});