summaryrefslogtreecommitdiff
path: root/script/postman-admin-pointer.js
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-10-15 06:46:12 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-10-15 06:46:12 +0000
commitedff34b548db49e94db2b6548adc95cc6001dcf5 (patch)
tree40ff112761d82af1d8c1c89d30ede8206502e17b /script/postman-admin-pointer.js
parent2065680a6ff5379064031c260433bf9a9cd314b9 (diff)
downloadPost-SMTP-edff34b548db49e94db2b6548adc95cc6001dcf5.zip
release
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1746635 b8457f37-d9ea-0310-8a92-e5e31aec5664
Diffstat (limited to 'script/postman-admin-pointer.js')
-rw-r--r--script/postman-admin-pointer.js20
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