Save fold state when folding via doubleclick
git-svn-id: https://develop.svn.wordpress.org/trunk@9382 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e7314f0cf5
commit
d778294d33
@ -5,7 +5,7 @@ adminMenu = {
|
||||
init : function() {
|
||||
$('#adminmenu a').attr('tabindex', '10');
|
||||
$('#adminmenu div.wp-menu-toggle').click( function() { return adminMenu.toggle( $(this).siblings('ul') ); } );
|
||||
$('#adminmenu li.wp-has-submenu img.wp-menu-image').dblclick( function() { adminMenu.fold(); } );
|
||||
$('#adminmenu li.wp-has-submenu img.wp-menu-image').dblclick( function() { adminMenu.fold(); setUserSetting( 'mfold', 'f' ); } );
|
||||
|
||||
$('.wp-menu-separator').click(function(){
|
||||
if ( $('#adminmenu').hasClass('folded') ) {
|
||||
@ -56,7 +56,7 @@ adminMenu = {
|
||||
$('#adminmenu li.wp-submenu-head').hide();
|
||||
$('#adminmenu a.wp-has-submenu, #adminmenu .wp-menu-open .wp-submenu, #adminmenu div.wp-menu-toggle').show();
|
||||
$('#adminmenu li.wp-has-submenu').unbind().css('width', '');
|
||||
$('#adminmenu li.wp-has-submenu img.wp-menu-image').unbind().dblclick( function() { adminMenu.fold(); } );
|
||||
$('#adminmenu li.wp-has-submenu img.wp-menu-image').unbind().dblclick( function() { adminMenu.fold(); setUserSetting( 'mfold', 'f' ); } );
|
||||
this.restoreMenuState();
|
||||
} else {
|
||||
$('#adminmenu').addClass('folded');
|
||||
|
Loading…
Reference in New Issue
Block a user