WordPress.org

Make WordPress Core

Changeset 6578


Ignore:
Timestamp:
01/09/2008 07:52:30 AM (13 years ago)
Author:
matt
Message:

Here's the toggle, but no saving... yet.

Location:
trunk/wp-admin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r6577 r6578  
    5353}
    5454
     55function add_postbox_toggles() {
     56    jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
     57    jQuery('.togbox').click( function() { jQuery(jQuery(this).parent().parent().get(0)).toggleClass('closed'); } );
     58}
     59
    5560addLoadEvent( function() {
    5661    jQuery('#tags-input').hide();
     
    7580    // auto-suggest stuff
    7681    jQuery('#newtag').suggest( 'admin-ajax.php?action=ajax-tag-search', { onSelect: tag_flush_to_text, delay: 500, minchars: 2 } );
     82    add_postbox_toggles();
    7783});
  • trunk/wp-admin/wp-admin.css

    r6576 r6578  
    11771177}
    11781178
     1179#poststuff h2 {
     1180    margin-bottom: 20px;
     1181}
     1182
    11791183#poststuff h3 {
    11801184    background: #eaf3fa;
     
    12431247}
    12441248
     1249#poststuff .togbox {
     1250    background-color:#b2b2b2;
     1251    background-image:url(images/toggle-arrow.gif);
     1252    background-position:-10px 18px;
     1253    background-repeat:no-repeat;
     1254    display:block;
     1255    height:44px;
     1256    margin-left:-19px;
     1257    margin-top:-13px;
     1258    overflow:hidden;
     1259    position:absolute;
     1260    text-indent:-9999px;
     1261    width:12px;
     1262    -moz-border-radius-topleft: 2px;
     1263    -moz-border-radius-bottomleft: 3px;
     1264}
     1265
     1266#poststuff .closed .inside {
     1267    display: none;
     1268}
     1269
     1270#poststuff .closed h3 {
     1271    margin: 0;
     1272}
     1273
     1274#poststuff .closed .togbox {
     1275    background-color:#2583ad;
     1276    background-image:url(images/toggle-arrow.gif);
     1277    background-position: 5px 18px;
     1278}
Note: See TracChangeset for help on using the changeset viewer.