mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Here's the toggle, but no saving... yet.
git-svn-id: https://develop.svn.wordpress.org/trunk@6578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user