Update styling on link pages, fix state saving for link cats, no green bg after quick editing a post fixes #8143

git-svn-id: http://svn.automattic.com/wordpress/trunk@9703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-14 23:58:17 +00:00
parent ae3fc05253
commit 072293c36b
6 changed files with 45 additions and 25 deletions

View File

@ -29,6 +29,10 @@ body > #upload-menu {
border-bottom-color: #fff; border-bottom-color: #fff;
} }
kbd, code {
background: #eaeaea;
}
div#current-widgets, div#current-widgets,
#postcustomstuff table, #postcustomstuff table,
#your-profile fieldset, #your-profile fieldset,
@ -601,7 +605,11 @@ li.widget-list-control-item h4,
#poststuff .postbox, #poststuff .postbox,
#titlediv, #titlediv,
#poststuff .postarea, #poststuff .postarea,
#poststuff .stuffbox { #poststuff .stuffbox,
.postbox input[type="text"],
.postbox textarea,
.stuffbox input[type="text"],
.stuffbox textarea {
border-color: #dfdfdf; border-color: #dfdfdf;
} }

View File

@ -13,7 +13,7 @@ form .input-text-wrap {
border-color: #ccc; border-color: #ccc;
} }
form .input-text-wrap input { #dashboard-widgets form .input-text-wrap input {
border: 0 none; border: 0 none;
outline: none; outline: none;
padding: 0; padding: 0;
@ -28,7 +28,7 @@ form .textarea-wrap {
border-color: #ccc; border-color: #ccc;
} }
form .textarea-wrap textarea { #dashboard-widgets form .textarea-wrap textarea {
border: 0 none; border: 0 none;
padding: 0; padding: 0;
outline: none; outline: none;

View File

@ -373,24 +373,24 @@ $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
<div id="namediv" class="stuffbox"> <div id="namediv" class="stuffbox">
<h3><label for="link_name"><?php _e('Name') ?></label></h3> <h3><label for="link_name"><?php _e('Name') ?></label></h3>
<div class="inside"> <div class="inside">
<input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /><br /> <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" />
<?php _e('Example: Nifty blogging software'); ?> <p><?php _e('Example: Nifty blogging software'); ?></p>
</div> </div>
</div> </div>
<div id="addressdiv" class="stuffbox"> <div id="addressdiv" class="stuffbox">
<h3><label for="link_url"><?php _e('Web Address') ?></label></h3> <h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
<div class="inside"> <div class="inside">
<input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /><br /> <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" />
<?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?> <p><?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?></p>
</div> </div>
</div> </div>
<div id="descriptiondiv" class="stuffbox"> <div id="descriptiondiv" class="stuffbox">
<h3><label for="link_description"><?php _e('Description') ?></label></h3> <h3><label for="link_description"><?php _e('Description') ?></label></h3>
<div class="inside"> <div class="inside">
<input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? $link->link_description : ''; ?>" id="link_description" /><br /> <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? $link->link_description : ''; ?>" id="link_description" />
<?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?> <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p>
</div> </div>
</div> </div>

View File

@ -214,10 +214,8 @@ inlineEditPost = {
row.html($(r).html()); row.html($(r).html());
if ( 'draft' == $('input[name="post_status"]').val() ) if ( 'draft' == $('input[name="post_status"]').val() )
row.find('td.column-comments').hide(); row.find('td.column-comments').hide();
row.show()
.animate( { backgroundColor: '#CCEEBB' }, 500)
.animate( { backgroundColor: '#eefee7' }, 500);
inlineEditPost.addEvents(row); inlineEditPost.addEvents(row);
row.fadeIn();
} else { } else {
$('#edit-'+id+' .inline-edit-save').append('<span class="error">'+inlineEditL10n.error+'</span>'); $('#edit-'+id+' .inline-edit-save').append('<span class="error">'+inlineEditL10n.error+'</span>');
} }

View File

@ -42,6 +42,12 @@ jQuery(document).ready( function($) {
response: 'category-ajax-response', response: 'category-ajax-response',
addAfter: catAddAfter addAfter: catAddAfter
} ); } );
$('a[href="#categories-all"]').click(function(){deleteUserSetting('cats');});
$('a[href="#categories-pop"]').click(function(){setUserSetting('cats','pop');});
if ( 'pop' == getUserSetting('cats') )
$('a[href="#categories-pop"]').click();
jQuery('#category-add-toggle').click( function() { jQuery('#category-add-toggle').click( function() {
jQuery(this).parents('div:first').toggleClass( 'wp-hidden-children' ); jQuery(this).parents('div:first').toggleClass( 'wp-hidden-children' );
categoryTabs.tabsClick( 1 ); categoryTabs.tabsClick( 1 );

View File

@ -162,8 +162,7 @@ table#availablethemes td.bottom {
} }
kbd, code { kbd, code {
background: #e5e5e5; padding: 1px 3px;
padding: 2px 3px;
margin: 0 1px; margin: 0 1px;
font-size: 12px; font-size: 12px;
} }
@ -437,9 +436,7 @@ textarea.all-options, input.all-options {
} }
#namediv input { #namediv input {
width: 94%; width: 98%;
border-style: solid;
border-width: 1px;
} }
#namediv p { #namediv p {
@ -1695,9 +1692,26 @@ table.form-table td .updated {
background-repeat: repeat-x; background-repeat: repeat-x;
} }
#poststuff .inside { .postbox table.form-table {
margin-bottom: 0;
}
.postbox input[type="text"],
.postbox textarea,
.stuffbox input[type="text"],
.stuffbox textarea {
border-width: 1px;
border-style: solid;
}
#poststuff .inside,
#poststuff .inside p {
font-size: 11px; font-size: 11px;
margin: 0 6px 6px; margin: 2px 6px 6px;
}
#poststuff .inside .submitbox p {
margin: 1em 0;
} }
#poststuff #submitdiv .inside { #poststuff #submitdiv .inside {
@ -1750,12 +1764,6 @@ table.form-table td .updated {
margin-top: -1px; margin-top: -1px;
} }
#link_name, #link_url, #link_description {
font-size: 1.7em;
padding: 4px 3px;
width: 98%;
}
#edit-slug-box { #edit-slug-box {
margin-top: 8px; margin-top: 8px;
padding: 0 7px; padding: 0 7px;