Files
roi-theme/wp-content/plugins/w3-total-cache/Extension_CloudFlare_View_Dashboard.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

16 lines
730 B
JavaScript
Executable File

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");
});
});