Changeset 33762
- Timestamp:
- 08/26/2015 03:22:57 PM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r33408 r33762 1789 1789 .postbox .handlediv { 1790 1790 float: right; 1791 width: 27px;1792 height: 3 0px;1791 width: 33px; 1792 height: 36px; 1793 1793 } 1794 1794 -
trunk/src/wp-admin/includes/template.php
r33734 r33762 1084 1084 $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : ''; 1085 1085 echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n"; 1086 if ( 'dashboard_browser_nag' != $box['id'] ) 1087 echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>'; 1086 if ( 'dashboard_browser_nag' != $box['id'] ) { 1087 echo '<button class="handlediv button-link" title="' . esc_attr__( 'Click to toggle' ) . '" aria-expanded="true">'; 1088 echo '<span class="screen-reader-text">' . sprintf( __( 'Click to toggle %s panel' ), $box['title'] ) . '</span><br />'; 1089 echo '</button>'; 1090 } 1088 1091 echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n"; 1089 1092 echo '<div class="inside">' . "\n"; -
trunk/src/wp-admin/js/postbox.js
r29524 r33762 12 12 self.init(page, args); 13 13 14 $('.postbox .hndle, .postbox .handlediv').bind('click.postboxes', function( ) {14 $('.postbox .hndle, .postbox .handlediv').bind('click.postboxes', function( e ) { 15 15 var p = $(this).parent('.postbox'), id = p.attr('id'); 16 16 … … 18 18 return; 19 19 20 p.toggleClass('closed'); 20 e.preventDefault(); 21 22 p.toggleClass( 'closed' ); 23 $(this).attr( 'aria-expanded', ! p.hasClass( 'closed' ) ); 21 24 22 25 if ( page != 'press-this' )
Note: See TracChangeset
for help on using the changeset viewer.