PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.1.7
Backup Migration v2.1.7
2.1.7 2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / analyst / assets / js / customize.js
backup-backup / analyst / assets / js Last commit date
customize.js 2 weeks ago
customize.js
34 lines
1 (function ($) {
2 $(document).on('click', '.analyst-notice-dismiss', function () {
3 var id = $(this).attr('analyst-notice-id');
4 var self = this;
5
6 $.post(ajaxurl, {
7 action: 'analyst_notification_dismiss',
8 id: id,
9 analyst_nonce: analyst_opt_localize.analyst_nonce
10 }).done(function () {
11 $(self).parent().fadeOut()
12 })
13 })
14
15 var url = new URL(window.location.href)
16
17 if (url.searchParams.has('verify')) {
18 var pluginId = url.searchParams.get('plugin_id')
19
20 $.ajax({
21 url: ajaxurl,
22 method: 'POST',
23 data: {
24 action: 'analyst_install_verified_' + pluginId,
25 analyst_nonce: analyst_opt_localize.analyst_nonce
26 },
27 success: function () {
28 // Refresh page without query params
29 window.location.href = window.location.origin + window.location.pathname
30 }
31 })
32 }
33 })(jQuery)
34