From 9a8adfabe53522fc6cf7f757772059673bf09436 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 9 Jan 2008 07:52:30 +0000 Subject: [PATCH] Here's the toggle, but no saving... yet. git-svn-id: http://svn.automattic.com/wordpress/trunk@6578 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/images/toggle-arrow.gif | Bin 0 -> 71 bytes wp-admin/js/post.js | 6 ++++++ wp-admin/wp-admin.css | 34 +++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 wp-admin/images/toggle-arrow.gif diff --git a/wp-admin/images/toggle-arrow.gif b/wp-admin/images/toggle-arrow.gif new file mode 100644 index 0000000000000000000000000000000000000000..86cb448bba4b97697f175a50c9575c9509f0db8f GIT binary patch literal 71 zcmZ?wbhEHb6k*_Cn8?WR|Nnp0=CzwPZDL?xQ2fcl$iTqJpaWzxfaDpNBwYGda&9{> Z#k2O7)%uN-lirtHGA#4X&|+n<1_0g~6@LH# literal 0 HcmV?d00001 diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 8ba8dc8ee9..6c8cbfaff2 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 60d5c31b1a..c32c77e65a 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