Changeset 26392
- Timestamp:
- 11/26/2013 05:08:37 AM (11 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/wp-admin.css
r26389 r26392 2441 2441 2442 2442 /* two columns on the dash, but keep the setting if one is selected */ 2443 @media only screen and (min-width: 800px) and (max-width: 1 399px) {2443 @media only screen and (min-width: 800px) and (max-width: 1499px) { 2444 2444 #wpbody-content #dashboard-widgets .postbox-container { 2445 2445 width: 49.5%; … … 2483 2483 2484 2484 /* three columns on the dash */ 2485 @media only screen and (min-width: 1 400px) and (max-width: 1800px) {2485 @media only screen and (min-width: 1500px) and (max-width: 1800px) { 2486 2486 #wpbody-content #dashboard-widgets .postbox-container { 2487 2487 width: 33.5%; -
trunk/src/wp-admin/includes/dashboard.php
r26337 r26392 136 136 function wp_dashboard() { 137 137 $screen = get_current_screen(); 138 $class = 'columns-' . get_current_screen()->get_columns();139 138 140 139 ?> 141 <div id="dashboard-widgets" class="metabox-holder <?php echo $class; ?>">140 <div id="dashboard-widgets" class="metabox-holder"> 142 141 <div id='postbox-container-1' class='postbox-container'> 143 142 <?php do_meta_boxes( $screen->id, 'normal', '' ); ?> -
trunk/src/wp-admin/js/dashboard.js
r26390 r26392 7 7 welcomePanelHide = $('#wp_welcome_panel-hide'), 8 8 updateWelcomePanel, 9 metaboxHolder = $( '.metabox-holder' ), 10 updateColumnCount; 9 metaboxHolder = $( '.metabox-holder' ); 11 10 12 11 updateWelcomePanel = function( visible ) { … … 133 132 }); 134 133 135 updateColumnCount = function( $window, $holder ) {136 var cols = 1,137 windowWidth = parseInt( $window.width(), 10 );138 139 if (799 < windowWidth && 1299 > windowWidth) {140 cols = 2;141 }142 143 if (1300 < windowWidth && 1799 > windowWidth) {144 cols = 3;145 }146 147 if (1800 < windowWidth) {148 cols = 4;149 }150 151 $holder.attr( 'class', $holder.attr( 'class' ).replace( /columns-\d+/, 'columns-' + cols ) );152 };153 154 // Update main column count on load155 updateColumnCount( $window, metaboxHolder );156 157 $window.on( 'resize', _.debounce(function() {158 updateColumnCount( $window, metaboxHolder );159 }, 30 ) );160 161 134 } ); -
trunk/src/wp-admin/network/index.php
r25616 r26392 61 61 add_thickbox(); 62 62 63 add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );64 65 63 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 66 64
Note: See TracChangeset
for help on using the changeset viewer.