| 1 |
/* |
| 2 |
* WP Reset |
| 3 |
* Backend GUI pointers |
| 4 |
* (c) Web factory Ltd, 2017 - 2023 |
| 5 |
*/ |
| 6 |
|
| 7 |
jQuery(document).ready(function($){ |
| 8 |
if (typeof wp_reset_pointers == 'undefined') { |
| 9 |
return; |
| 10 |
} |
| 11 |
|
| 12 |
$.each(wp_reset_pointers, function(index, pointer) { |
| 13 |
if (index.charAt(0) == '_') { |
| 14 |
return true; |
| 15 |
} |
| 16 |
$(pointer.target).pointer({ |
| 17 |
content: '<h3>WP Reset</h3><p>' + pointer.content + '</p>', |
| 18 |
pointerWidth: 380, |
| 19 |
position: { |
| 20 |
edge: pointer.edge, |
| 21 |
align: pointer.align |
| 22 |
}, |
| 23 |
close: function() { |
| 24 |
$.get(ajaxurl, { |
| 25 |
notice_name: index, |
| 26 |
_ajax_nonce: wp_reset_pointers._nonce_dismiss_pointer, |
| 27 |
action: 'wp_reset_dismiss_notice' |
| 28 |
}); |
| 29 |
} |
| 30 |
}).pointer('open'); |
| 31 |
}); |
| 32 |
}); |
| 33 |
|