codemirror
9 years ago
javascript-md5
7 years ago
how-to.js
8 years ago
how-to.min.js
6 years ago
jquery.colorbox.js
8 years ago
jquery.colorbox.min.js
6 years ago
metabox.js
5 years ago
metabox.min.js
5 years ago
multisite-updater.js
6 years ago
multisite-updater.min.js
6 years ago
wp-pages.js
6 years ago
wp-pages.min.js
6 years ago
yit-cpt-unlimited.js
6 years ago
yit-cpt-unlimited.min.js
6 years ago
yit-plugin-panel.js
5 years ago
yit-plugin-panel.min.js
5 years ago
yit-wp-pointer.js
5 years ago
yit-wp-pointer.min.js
5 years ago
yith-colorpicker.min.js
5 years ago
yith-dashboard.js
7 years ago
yith-dashboard.min.js
6 years ago
yith-enhanced-select-wc-2.6.js
5 years ago
yith-enhanced-select-wc-2.6.min.js
5 years ago
yith-enhanced-select.js
5 years ago
yith-enhanced-select.min.js
5 years ago
yith-fields.js
5 years ago
yith-fields.min.js
5 years ago
yith-gutenberg.js
5 years ago
yith-gutenberg.min.js
5 years ago
yith-promo.js
7 years ago
yith-promo.min.js
6 years ago
yith-system-info.js
5 years ago
yith-system-info.min.js
5 years ago
yith-update-plugins.js
7 years ago
yith-update-plugins.min.js
6 years ago
yit-wp-pointer.js
83 lines
| 1 | jQuery( function($) { |
| 2 | var pointers = custom_pointer.pointers[0], |
| 3 | options = pointers.options, |
| 4 | target = $(pointers.target), |
| 5 | pointer_id = pointers.pointer_id; |
| 6 | |
| 7 | $(target).find('.wp-submenu li a').each(function () { |
| 8 | |
| 9 | var t = $(this), |
| 10 | href = t.attr('href'); |
| 11 | |
| 12 | href = href.replace('admin.php?page=', ''); |
| 13 | |
| 14 | if( href == pointer_id ){ |
| 15 | |
| 16 | var selected_plugin_row = t.add( target ), |
| 17 | top_level_menu = target.find( pointers.target.replace( '#', '.' ) ); |
| 18 | |
| 19 | target.toggleClass('wp-no-current-submenu wp-menu-open wp-has-current-submenu'); |
| 20 | |
| 21 | t.pointer({ |
| 22 | pointerClass: 'yit-wp-pointer', |
| 23 | content : options.content, |
| 24 | position: options.position, |
| 25 | open : function () { |
| 26 | selected_plugin_row.toggleClass( 'yit-pointer-selected-row' ); |
| 27 | top_level_menu.addClass( 'yit-pointer' ); |
| 28 | }, |
| 29 | |
| 30 | |
| 31 | close : function () { |
| 32 | target.toggleClass('wp-no-current-submenu wp-menu-open wp-has-current-submenu'); |
| 33 | selected_plugin_row.toggleClass( 'yit-pointer-selected-row' ); |
| 34 | top_level_menu.removeClass( 'yit-pointer' ); |
| 35 | |
| 36 | $.ajax({ |
| 37 | type : 'POST', |
| 38 | url : ajaxurl, |
| 39 | data : { |
| 40 | "action" : "dismiss-wp-pointer", |
| 41 | "pointer": pointer_id |
| 42 | }, |
| 43 | success: function (response) { |
| 44 | } |
| 45 | }); |
| 46 | |
| 47 | } |
| 48 | }).pointer('open'); |
| 49 | } else if( 'yith_default_pointer' == pointer_id ) { |
| 50 | |
| 51 | var selected_plugin_row = t.add( target ), |
| 52 | top_level_menu = target.find( pointers.target.replace( '#', '.' )), |
| 53 | yit_plugins = $( pointers.target ); |
| 54 | |
| 55 | yit_plugins.addClass('wp-has-current-submenu'); |
| 56 | |
| 57 | top_level_menu.pointer({ |
| 58 | pointerClass: 'yit-wp-pointer', |
| 59 | content : options.content, |
| 60 | position: options.position, |
| 61 | |
| 62 | open : function () { |
| 63 | yit_plugins.addClass( 'yit-pointer-selected-row' ); |
| 64 | }, |
| 65 | |
| 66 | close : function () { |
| 67 | yit_plugins.removeClass( 'yit-pointer-selected-row wp-has-current-submenu' ); |
| 68 | |
| 69 | $.ajax({ |
| 70 | type : 'POST', |
| 71 | url : ajaxurl, |
| 72 | data : { |
| 73 | "action" : "dismiss-wp-pointer", |
| 74 | "pointer": pointer_id |
| 75 | }, |
| 76 | success: function (response) { |
| 77 | } |
| 78 | }); |
| 79 | } |
| 80 | }).pointer('open'); |
| 81 | } |
| 82 | }); |
| 83 | }); |