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:
matt 2008-01-09 07:52:30 +00:00
parent ce0f9ad80b
commit 9a8adfabe5
3 changed files with 40 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

View File

@ -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();
});

View File

@ -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;
}