diff --git a/wp-admin/css/colors-classic-rtl.css b/wp-admin/css/colors-classic-rtl.css index dbb13d381b..7867b55d0b 100644 --- a/wp-admin/css/colors-classic-rtl.css +++ b/wp-admin/css/colors-classic-rtl.css @@ -7,9 +7,6 @@ #footer { background-position:99% 10px; } -.metabox-holder .closed .togbox, .metabox-holder .togbox, #poststuff .closed .togbox, #poststuff .togbox { - background-image: url(../images/toggle-arrow-rtl.gif) !important; -} .bar { border-right-color: transparent; border-left-color: #99d; diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 6ee027fcb2..44ff67249e 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -502,22 +502,12 @@ input.readonly { color: #333; } -.metabox-holder .closed .togbox, #poststuff .closed .togbox { - background-color: #2583ad; - background-image: url(../images/toggle-arrow.gif); -} - .metabox-holder .postbox, #poststuff .postbox, #titlediv, #poststuff .postarea, #poststuff .stuffbox { border-color: #ebebeb; border-right-color: #ccc; border-bottom-color: #ccc; } -.metabox-holder .togbox, #poststuff .togbox { - background-color: #b2b2b2; - background-image: url(../images/toggle-arrow.gif); -} - .metabox-holder .postbox, #poststuff .postbox { background-color: #FFF; } diff --git a/wp-admin/css/colors-fresh-rtl.css b/wp-admin/css/colors-fresh-rtl.css index d767316a48..0fbfa6a9af 100644 --- a/wp-admin/css/colors-fresh-rtl.css +++ b/wp-admin/css/colors-fresh-rtl.css @@ -15,9 +15,6 @@ border-right-color: transparent; border-left-color: #ccc; } -.metabox-holder .closed .togbox, .metabox-holder .togbox, #poststuff .closed .togbox, #poststuff .togbox { - background-image: url(../images/toggle-arrow-rtl.gif); -} #upload-menu li.current { border-right-color:transparent; border-left-color: #448abd; diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index 0e3f930046..e9a0045f38 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -483,22 +483,12 @@ input.readonly { color: #333; } -.metabox-holder .closed .togbox, #poststuff .closed .togbox { - background-color: #2583ad; - background-image: url(../images/toggle-arrow.gif); -} - .metabox-holder .postbox, #poststuff .postbox, #titlediv, #poststuff .postarea, #poststuff .stuffbox { border-color: #ebebeb; border-right-color: #ccc; border-bottom-color: #ccc; } -.metabox-holder .togbox, #poststuff .togbox { - background-color: #b2b2b2; - background-image: url(../images/toggle-arrow.gif); -} - .metabox-holder .postbox, #poststuff .postbox { background-color: #FFF; } diff --git a/wp-admin/css/ie-rtl.css b/wp-admin/css/ie-rtl.css index 49c67e71e1..5c21c6bccf 100644 --- a/wp-admin/css/ie-rtl.css +++ b/wp-admin/css/ie-rtl.css @@ -20,10 +20,6 @@ div#dashboard-widgets { #tagchecklist span a { margin: 4px -9px 0 0; } -.metabox-holder .togbox, #poststuff .togbox { - margin-left:0; - margin-right: -19px; -} .widefat th input { margin: 0 5px 0 0; } diff --git a/wp-admin/css/ie.css b/wp-admin/css/ie.css index 5d0eceb11e..d877f71fc7 100644 --- a/wp-admin/css/ie.css +++ b/wp-admin/css/ie.css @@ -136,10 +136,6 @@ div#dashboard-widgets { margin: 4px 0 0 -9px; } -.metabox-holder .togbox, #poststuff .togbox { - margin-left: -19px; -} - .tablenav .button-secondary, .nav .button-secondary { padding: 0 1px; vertical-align: middle; diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 1b0269d854..57e330ecf4 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2659,7 +2659,7 @@ function meta_box_prefs($page) { continue; $box_id = $box['id']; echo '\n"; } } diff --git a/wp-admin/js/postbox.js b/wp-admin/js/postbox.js index 5f6d42d36b..efa5de869c 100644 --- a/wp-admin/js/postbox.js +++ b/wp-admin/js/postbox.js @@ -1,8 +1,7 @@ (function($) { postboxes = { add_postbox_toggles : function(page,args) { - $('.postbox h3').before('+ '); - $('.postbox h3, .postbox a.togbox').click( function() { + $('.postbox h3').click( function() { $($(this).parent().get(0)).toggleClass('closed'); postboxes.save_state(page); }); @@ -10,19 +9,6 @@ e.stopPropagation(); } ); - $('.hide-postbox-tog').click( function() { - var box = jQuery(this).val(); - if ( jQuery(this).attr('checked') ) { - jQuery('#' + box).show(); - if ( $.isFunction( postboxes.onShow ) ) { - postboxes.onShow( box ); - } - } else { - jQuery('#' + box).hide(); - } - postboxes.save_state(page); - } ); - if ( $.browser.msie ) { $('#side-sortables').append( '
' ); } else { diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index b4fa641af4..5d82a93987 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -209,26 +209,6 @@ td.available-theme { #poststuff #media-buttons a { padding: 0 2px 2px 5px; } -#poststuff .togbox { - margin-left:0; - margin-right: -21px; - -moz-border-radius-topleft:0; - -khtml-border-top-left-radius:0; - -webkit-border-top-left-radius:0; - border-top-left-radius:0; - -moz-border-radius-topright: 3px; - -khtml-border-top-right-radius: 3px; - -webkit-border-top-right-radius: 3px; - border-top-right-radius: 3px; - -moz-border-radius-bottomleft: 0; - -khtml-border-bottom-left-radius:0; - -webkit-border-bottom-left-radius:0; - border-bottom-left-radius:0; - -moz-border-radius-bottomright: 3px; - -khtml-border-bottom-right-radius: 3px; - -webkit-border-bottom-right-radius: 3px; - border-bottom-right-radius: 3px; -} .submitbox .submitdelete { margin-left:0; margin-right:8px; diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index b459cbb4d8..0f9c85d0e1 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1392,26 +1392,6 @@ table.form-table td .updated { vertical-align: middle; } -.metabox-holder .togbox, #poststuff .togbox { - background-position: -10px 16px; - background-repeat: no-repeat; - display: block; - height: 37px; - margin-left: -14px; - margin-top: -3px; - overflow: hidden; - position: absolute; - text-indent: -9999px; - width: 12px; - -moz-border-radius: 3px 0 0 3px; - -webkit-border-top-left-radius: 3px; - -webkit-border-bottom-left-radius: 3px; - -khtml-border-top-left-radius: 3px; - -khtml-border-bottom-left-radius: 3px; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - .metabox-holder .closed .inside, #poststuff .closed .inside { display: none; } @@ -1420,10 +1400,6 @@ table.form-table td .updated { margin: 0; } -.metabox-holder .closed .togbox, #poststuff .closed .togbox { - background-position: 4px 15px; -} - #side-info-column #side-sortables { height: 100%; } @@ -1831,10 +1807,6 @@ fieldset { cursor: pointer; } -a.togbox { - cursor: pointer; -} - .ui-sortable .postbox .hndle { padding: 6px 0; cursor: move;