Error since latest update
-
We get the following error on the backend dashboard since the last update.
jQuery( document ).on( ‘click’, ‘.opt_out_dismiss_button’, function ( e ) { e.preventDefault(); let _this = jQuery( this ); jQuery.ajax( { url: ajaxurl, type: ‘POST’, dataType: ‘json’, data: { action: ‘pys_fixed_notice_opt_dismiss’, nonce: ‘3b087d83e5’, addon_slug: ‘free’ }, success: function (response) { _this.closest(‘.pys-chain-fixed-notice’).slideUp(); } }); }); jQuery(document).on(‘click’, ‘.pys-chain-fixed-notice .notice-watch-link’, function (e) { _this = jQuery(this); jQuery.ajax({ url: ajaxurl, type: ‘POST’, dataType: ‘json’, data: { action: ‘pys_fixed_notice_dismiss’, nonce: ‘b42ee094ea’, addon_slug: ‘free’, meta_key: [_this.closest(‘.notice-item’).data(‘slug’)] }, success: function (response) { _this.closest(‘.notice-item’).addClass(‘closed-notice’); _this.closest(‘.notice-item’).slideUp(); if(_this.closest(‘.pys-chain-fixed-notice’).find(‘.notice-item’).length == _this.closest(‘.pys-chain-fixed-notice’).find(‘.notice-item.closed-notice’).length) { _this.closest(‘.pys-chain-fixed-notice’).slideUp(); } } }); }); jQuery(document).on(‘click’, ‘.pys-chain-fixed-notice .notice-dismiss’, function () { var array_notice = []; jQuery(this).closest(‘.pys-chain-fixed-notice’).find(‘.notice-item’).each(function (){ array_notice.push(jQuery(this).data(‘slug’)); }) _this = jQuery(this); jQuery.ajax({ url: ajaxurl, type: ‘POST’, dataType: ‘json’, data: { action: ‘pys_fixed_notice_dismiss’, nonce: ‘b42ee094ea’, addon_slug: ‘free’, meta_key: array_notice }, success: function (response) { _this.closest(‘.pys-chain-fixed-notice’).slideUp(); }, }); });
You must be logged in to reply to this topic.