Files

28 lines
705 B
JavaScript
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
jQuery( document ).ready( function($) {
$('.ajax-close-addon-notice').click( function() {
var addon = $(this).attr( 'data-addon' ),
notice = $(this).attr( 'data-notice' ),
element = $(this).parent().parent();
if ( addon !== false && addon !== undefined && notice !== false && notice !== undefined ) {
$.ajax({
url: ajaxurl,
type: 'POST',
data: {
action: 'wprss_dismiss_addon_notice',
addon: addon,
notice: notice,
},
success: function( data, status, jqXHR) {
if ( data === 'true' ) {
element.slideUp( 'fast', function(){
element.remove();
});
}
}
});
$(this).text( wprss_admin_addon_ajax.please_wait );
}
});
});