script in backend
-
In the backend of all websites in which I installed your plugin I have this script visible
jQuery(document).ready(function ($) {
$('.tpa_dismiss_notice').on('click', function (event) {
var thisE = $(this);
var wrapper=thisE.parents('.tpa-feedback-notice-wrapper');
var ajaxURL=wrapper.data('ajax-url');
var ajaxCallback=wrapper.data('ajax-callback');
var nonce=wrapper.data('nonce');
$.post(ajaxURL, { 'action':ajaxCallback, 'nonce':nonce }, function( data ) {
if(data.success) {
wrapper.slideUp('fast');
} else {
console.error('Failed to dismiss notice:', data.data.message);
}
}, 'json');
});
});Just where usually I have notifications.
Please fix it in the next release
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘script in backend’ is closed to new replies.