Viewing 2 replies - 1 through 2 (of 2 total)
  • Yup, it happens to me too…

    Replace below script in unattach-and-reattach.php file for display drop down only on media library

    jQuery(document).ready(function() {
    $ = jQuery;
    if($('.wrap h2').text() != 'Posts Add New'){
    $('<option>').val('unattach').text('<?php _e('Unattach')?>').appendTo("#posts-filter select[name='action']");
    $('<option>').val('reattach').text('<?php _e('Re-Attach')?>').appendTo("#posts-filter select[name='action']");
    $('<option>').val('unattach').text('<?php _e('Unattach')?>').appendTo("#posts-filter select[name='action2']");
    $('<option>').val('reattach').text('<?php _e('Re-Attach')?>').appendTo("#posts-filter select[name='action2']");
    }
    $('#doaction, #doaction2').click(function(e){
    $('select[name^="action"]').each(function(){
    if ( $(this).val() == 'reattach' ) {
    	e.preventDefault();
    	findPosts.open();
    		}
    	});
    });
    });

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unattach/Re-Attach shown in all pulldowns’ is closed to new replies.