芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/premium-addons-for-elementor/admin/assets/js/pa-notice.js
(function ($) { var $noticeWrap = $(".pa-notice-wrap"), notice = $noticeWrap.data('notice'); var adminNotices = { 'radius': 'radius_notice', 'woo-cats': 'woo_cats', }; if (undefined !== notice) { $noticeWrap.find('.pa-notice-reset').on( "click", function () { $noticeWrap.css('display', 'none'); $.ajax( { url: ajaxurl, type: 'POST', data: { action: 'pa_reset_admin_notice', notice: $noticeWrap.data('notice'), nonce: PaNoticeSettings.nonce, } } ); } ); } $(".pa-notice-close").on( "click", function () { var noticeID = $(this).data('notice'); if (noticeID) { $(this).closest('.pa-new-feature-notice').remove(); $.ajax( { url: ajaxurl, type: 'POST', data: { action: 'pa_dismiss_admin_notice', notice: adminNotices[noticeID], nonce: PaNoticeSettings.nonce, }, success: function (res) { console.log(res); }, error: function (err) { console.log(err); } } ); } } ); })(jQuery);