QE: set colspan and fix IE input field width
git-svn-id: http://svn.automattic.com/wordpress/trunk@9738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1039d131fe
commit
eb42b45767
|
@ -194,6 +194,14 @@ ul#adminmenu {
|
||||||
#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input {
|
#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input {
|
||||||
line-height: 130%;
|
line-height: 130%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#wpbody-content .inline-edit-row .input-text-wrap input {
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input {
|
||||||
|
width: 8em;
|
||||||
|
}
|
||||||
/* end Inline Editor */
|
/* end Inline Editor */
|
||||||
|
|
||||||
#titlediv #title {
|
#titlediv #title {
|
||||||
|
|
|
@ -78,16 +78,18 @@ inlineEditPost = {
|
||||||
},
|
},
|
||||||
|
|
||||||
setBulk : function() {
|
setBulk : function() {
|
||||||
var te = '', c = '';
|
var te = '', c = '', type = this.type;
|
||||||
this.revert();
|
this.revert();
|
||||||
|
|
||||||
|
$('#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length);
|
||||||
$('table.widefat tbody').prepend( $('#bulk-edit') );
|
$('table.widefat tbody').prepend( $('#bulk-edit') );
|
||||||
$('#bulk-edit').addClass('inline-editor').show();
|
$('#bulk-edit').addClass('inline-editor').show();
|
||||||
|
|
||||||
$('tbody th.check-column input[type="checkbox"]').each(function(i){
|
$('tbody th.check-column input[type="checkbox"]').each(function(i){
|
||||||
if ( $(this).attr('checked') ) {
|
if ( $(this).attr('checked') ) {
|
||||||
var id = $(this).val();
|
var id = $(this).val();
|
||||||
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton">X</a>'+$('tr#post_'+id+' .post_title strong').text()+'</div>';
|
var theTitle = $('#inline_'+id+' .post_title').text() || '#'+id;
|
||||||
|
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton">X</a>'+theTitle+'</div>';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -100,7 +102,7 @@ inlineEditPost = {
|
||||||
});
|
});
|
||||||
|
|
||||||
// enable autocomplete for tags
|
// enable autocomplete for tags
|
||||||
if ( this.type == 'post' )
|
if ( type == 'post' )
|
||||||
$('tr.inline-editor textarea[name="tags_input"]').suggest( 'admin-ajax.php?action=ajax-tag-search', { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
$('tr.inline-editor textarea[name="tags_input"]').suggest( 'admin-ajax.php?action=ajax-tag-search', { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -117,6 +119,7 @@ inlineEditPost = {
|
||||||
|
|
||||||
// add the new blank row
|
// add the new blank row
|
||||||
var editRow = $('#inline-edit').clone(true);
|
var editRow = $('#inline-edit').clone(true);
|
||||||
|
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
||||||
|
|
||||||
if ( $(t.what+id).hasClass('alternate') )
|
if ( $(t.what+id).hasClass('alternate') )
|
||||||
$(editRow).addClass('alternate');
|
$(editRow).addClass('alternate');
|
||||||
|
|
|
@ -48,6 +48,7 @@ inlineEditTax = {
|
||||||
id = t.getId(id);
|
id = t.getId(id);
|
||||||
|
|
||||||
var editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
|
var editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
|
||||||
|
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
||||||
|
|
||||||
if ( $(t.what+id).hasClass('alternate') )
|
if ( $(t.what+id).hasClass('alternate') )
|
||||||
$(editRow).addClass('alternate');
|
$(editRow).addClass('alternate');
|
||||||
|
|
|
@ -2730,7 +2730,7 @@ tr.inline-edit-row td {
|
||||||
padding-right: 0.5em;
|
padding-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inline-edit-row fieldset label input[type=text] {
|
.inline-edit-row .input-text-wrap input[type=text] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -250,12 +250,12 @@ function wp_default_scripts( &$scripts ) {
|
||||||
|
|
||||||
$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
|
$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' ), '20081115b' );
|
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081117' );
|
||||||
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||||
'error' => __('Error while saving the changes.')
|
'error' => __('Error while saving the changes.')
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081115' );
|
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081117' );
|
||||||
$scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
|
$scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
|
||||||
'error' => __('Error while saving the changes.')
|
'error' => __('Error while saving the changes.')
|
||||||
) );
|
) );
|
||||||
|
@ -303,7 +303,7 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081117' );
|
$styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081117' );
|
||||||
$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
|
$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
|
||||||
|
|
||||||
$styles->add( 'ie', '/wp-admin/css/ie.css' );
|
$styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081117' );
|
||||||
$styles->add_data( 'ie', 'conditional', 'gte IE 6' );
|
$styles->add_data( 'ie', 'conditional', 'gte IE 6' );
|
||||||
|
|
||||||
$styles->add( 'colors', true ); // Register "meta" stylesheet for admin colors
|
$styles->add( 'colors', true ); // Register "meta" stylesheet for admin colors
|
||||||
|
|
Loading…
Reference in New Issue