This commit is contained in:
Javier Casares 2026-02-19 11:15:55 +00:00
commit f7702f2872
25 changed files with 6453 additions and 0 deletions

29
assets/admin.js Normal file
View file

@ -0,0 +1,29 @@
/**
* OpenGraph Admin JavaScript
*
* Confirmation dialogs for batch cache operations.
*
* @package ROBOTSTXT_OG
* @since 1.0.0
*/
(function($) {
'use strict';
$(document).ready(function() {
$('a[href*="robotstxt_og_clear_cache"]').on('click', function(e) {
if (!confirm(robotstxt_og_admin.confirm_clear_cache)) {
e.preventDefault();
}
});
$('a[href*="robotstxt_og_resolve_all"]').on('click', function(e) {
if (!confirm(robotstxt_og_admin.confirm_resolve_all)) {
e.preventDefault();
}
});
});
})(jQuery);