jQuery(document).on( 'click', '.visibility-notice', function() { jQuery.ajax({ url: ajaxurl, data: { action: 'aioseo_dismiss_visibility_notice' } }) }) jQuery(document).on( 'click', '.yst_notice', function() { jQuery.ajax({ url: ajaxurl, data: { action: 'aioseo_dismiss_yst_notice' } }) }) jQuery(document).on( 'click', '.woo-upgrade-notice', function() { jQuery.ajax({ url: ajaxurl, data: { action: 'aioseo_dismiss_woo_upgrade_notice' } }) }) function aioseop_ajax_edit_meta_form( post_id, meta, nonce ) { var uform = jQuery('#aioseop_'+meta+'_' + post_id); var post_title = jQuery('#aioseop_label_' + meta + '_' + post_id).text(); var element = uform.html(); var input; input = ''; input += ''; uform.html( input ); uform.attr( "class", "aioseop_mpc_admin_meta_options aio_editing" ); jQuery('#aioseop_'+meta+'_cancel_' + post_id).click(function() { uform.html( element ); uform.attr( "class", "aioseop_mpc_admin_meta_options" ); }); jQuery('#aioseop_'+meta+'_save_' + post_id).click(function() { var new_meta = jQuery( '#aioseop_new_'+meta+'_' + post_id ).val(); handle_post_meta( post_id, new_meta, meta, nonce ); }); } function handle_post_meta( p, t, m, n ) { jQuery("div#aioseop_"+m+"_"+p).fadeOut('fast', function() { var loading = '