Bulk Edit improvements, includes patch by FFEMTcJ, fixes #8376
git-svn-id: https://develop.svn.wordpress.org/trunk@9973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8c9ea5173c
commit
74a9694b10
@ -949,7 +949,7 @@ function inline_edit_row( $type ) {
|
||||
?>" style="display: none"><td colspan="<?php echo $col_count; ?>">
|
||||
|
||||
<fieldset class="inline-edit-col-left"><div class="inline-edit-col">
|
||||
<h4><?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?></h4>
|
||||
<h4><?php echo $bulk ? ( $is_page ? __( 'Bulk Edit Pages' ) : __( 'Bulk Edit Posts' ) ) : __( 'Quick Edit' ); ?></h4>
|
||||
|
||||
|
||||
<?php if ( $bulk ) : ?>
|
||||
|
@ -88,8 +88,8 @@ inlineEditPost = {
|
||||
$('tbody th.check-column input[type="checkbox"]').each(function(i){
|
||||
if ( $(this).attr('checked') ) {
|
||||
var id = $(this).val();
|
||||
var theTitle = $('#inline_'+id+' .post_title').text() || '#'+id;
|
||||
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton">X</a>'+theTitle+'</div>';
|
||||
var theTitle = $('#inline_'+id+' .post_title').text() || inlineEditL10n.notitle;
|
||||
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+theTitle+'</div>';
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -2700,6 +2700,7 @@ tr.inline-edit-row td {
|
||||
.inline-edit-row fieldset span.checkbox-title {
|
||||
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||
font-style: italic;
|
||||
line-height: 1.8em;
|
||||
}
|
||||
|
||||
/* Specific Elements */
|
||||
|
@ -250,9 +250,11 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
|
||||
|
||||
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081117' );
|
||||
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081129' );
|
||||
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.')
|
||||
'error' => __('Error while saving the changes.'),
|
||||
'ntdeltitle' => __('Remove From Bulk Edit'),
|
||||
'notitle' => __('(no title)')
|
||||
) );
|
||||
|
||||
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081117' );
|
||||
|
Loading…
Reference in New Issue
Block a user