diff --git a/wp-admin/images/toggle-arrow.gif b/wp-admin/images/toggle-arrow.gif new file mode 100644 index 000000000..86cb448bb Binary files /dev/null and b/wp-admin/images/toggle-arrow.gif differ diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 8ba8dc8ee..6c8cbfaff 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -52,6 +52,11 @@ function tag_press_key( e ) { } } +function add_postbox_toggles() { + jQuery('.postbox h3').prepend('+ '); + 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(); }); \ No newline at end of file diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 60d5c31b1..c32c77e65 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -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; +} \ No newline at end of file