← Back
Editing: smart-updates-status.min.js
jQuery(document).ready(function(n){n.ajax({url:wpaas_smart_updates_status_object.ajaxUrlFetch,type:"GET",beforeSend:function(s){s.setRequestHeader("X-WP-Nonce",wpaas_smart_updates_status_object.nonce)},success:function(s,t,a){var e=n(".wp-header-end");e.length||(e=n(".wrap h1, .wrap h2").first()),n("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(e);for(var i=0;i<s.data.length;i++)e.after('<div class="wpaas-notice wpaas-smart-updates notice notice-warning is-dismissible" data-dismiss-id="'+s.data[i].dismiss_id+'"> <p>'+s.data[i].message+'</p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button> </div>');n(".wpaas-smart-updates").on("click",".notice-dismiss",function(s,t){n(this).parent().remove();var a=n(this).parent().attr("data-dismiss-id");n.ajax({url:wpaas_smart_updates_status_object.ajaxUrlDismiss,type:"POST",data:{dismiss_id:a},beforeSend:function(s){s.setRequestHeader("X-WP-Nonce",wpaas_smart_updates_status_object.nonce)},success:function(s,t,a){},error:function(s){}})})},error:function(s){}})});
Save File
Cancel