mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Use admin menu API when responsively collapsing the menu. CSS fixes. see #18382.
git-svn-id: https://develop.svn.wordpress.org/trunk@18761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -352,12 +352,10 @@ $(document).ready( function() {
|
||||
if ( getUserSetting('mfold') == 'f' )
|
||||
return;
|
||||
|
||||
var w = $(window).width();
|
||||
var width = $(window).width();
|
||||
|
||||
if ( w <= 800 ) // fold admin menu
|
||||
$(document.body).addClass('folded');
|
||||
else
|
||||
$(document.body).removeClass('folded');
|
||||
// fold admin menu
|
||||
adminMenu.fold( width >= 800 );
|
||||
|
||||
}).triggerHandler('resize');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user