blob: 6b6f76e72aa2a21e4a731cca4a7aba51d8a27893 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
jQuery(document).ready(function() {
wptuts_open_pointer(0);
function wptuts_open_pointer(i) {
pointer = postman_admin_pointer.pointers[i];
options = jQuery.extend(pointer.options, {
close : function() {
jQuery.post(ajaxurl, {
pointer : pointer.pointer_id,
action : 'dismiss-wp-pointer'
}).fail(function(response) {
//ajaxFailed(response);
});
}
});
if (typeof (jQuery().pointer) != 'undefined') {
jQuery(pointer.target).pointer(options).pointer('open');
}
}
});
|