diff options
Diffstat (limited to 'script/postman-admin-pointer.js')
-rw-r--r-- | script/postman-admin-pointer.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/script/postman-admin-pointer.js b/script/postman-admin-pointer.js new file mode 100644 index 0000000..6b6f76e --- /dev/null +++ b/script/postman-admin-pointer.js @@ -0,0 +1,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'); + } + } +});
\ No newline at end of file |