v1.0.0
This commit is contained in:
parent
ac2c7a8014
commit
f7702f2872
25 changed files with 6453 additions and 0 deletions
29
assets/admin.js
Normal file
29
assets/admin.js
Normal 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);
|
||||
Loading…
Reference in a new issue