Fix folding/unfolding of the admin menu on new installs, props SergeyBiryukov, fixes #24921 for 3.6.1.

Built from https://develop.svn.wordpress.org/trunk@25186


git-svn-id: http://core.svn.wordpress.org/trunk@25158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-08-30 17:11:08 +00:00
parent 5a312f71f6
commit cd4d1460c6
2 changed files with 4 additions and 4 deletions

View File

@ -185,15 +185,15 @@ $(document).ready( function() {
if ( body.hasClass('auto-fold') ) {
body.removeClass('auto-fold').removeClass('folded');
setUserSetting('unfold', 1);
deleteUserSetting('mfold');
setUserSetting('mfold', 'o');
} else {
body.addClass('auto-fold');
deleteUserSetting('unfold');
setUserSetting('unfold', 0);
}
} else {
if ( body.hasClass('folded') ) {
body.removeClass('folded');
deleteUserSetting('mfold');
setUserSetting('mfold', 'o');
} else {
body.addClass('folded');
setUserSetting('mfold', 'f');

File diff suppressed because one or more lines are too long