mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Here's the toggle, but no saving... yet.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce0f9ad80b
commit
9a8adfabe5
BIN
wp-admin/images/toggle-arrow.gif
Normal file
BIN
wp-admin/images/toggle-arrow.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 B |
@ -52,6 +52,11 @@ function tag_press_key( e ) {
|
||||
}
|
||||
}
|
||||
|
||||
function add_postbox_toggles() {
|
||||
jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
|
||||
jQuery('.togbox').click( function() { jQuery(jQuery(this).parent().parent().get(0)).toggleClass('closed'); } );
|
||||
}
|
||||
|
||||
addLoadEvent( function() {
|
||||
jQuery('#tags-input').hide();
|
||||
tag_update_quickclicks();
|
||||
@ -74,4 +79,5 @@ addLoadEvent( function() {
|
||||
|
||||
// auto-suggest stuff
|
||||
jQuery('#newtag').suggest( 'admin-ajax.php?action=ajax-tag-search', { onSelect: tag_flush_to_text, delay: 500, minchars: 2 } );
|
||||
add_postbox_toggles();
|
||||
});
|
@ -1176,6 +1176,10 @@ a.view-comment-post-link {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#poststuff h2 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#poststuff h3 {
|
||||
background: #eaf3fa;
|
||||
font-size: 15px;
|
||||
@ -1242,3 +1246,33 @@ a.view-comment-post-link {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#poststuff .togbox {
|
||||
background-color:#b2b2b2;
|
||||
background-image:url(images/toggle-arrow.gif);
|
||||
background-position:-10px 18px;
|
||||
background-repeat:no-repeat;
|
||||
display:block;
|
||||
height:44px;
|
||||
margin-left:-19px;
|
||||
margin-top:-13px;
|
||||
overflow:hidden;
|
||||
position:absolute;
|
||||
text-indent:-9999px;
|
||||
width:12px;
|
||||
-moz-border-radius-topleft: 2px;
|
||||
-moz-border-radius-bottomleft: 3px;
|
||||
}
|
||||
|
||||
#poststuff .closed .inside {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#poststuff .closed h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#poststuff .closed .togbox {
|
||||
background-color:#2583ad;
|
||||
background-image:url(images/toggle-arrow.gif);
|
||||
background-position: 5px 18px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user