--- admin.toolbar.js 2011-05-27 12:19:10.353187842 -0300 +++ admin.toolbar.js2 2011-05-27 12:03:18.797858449 -0300 @@ -107,7 +107,7 @@ if ($(document.body).is('.admin-expanded')) { if ($(toolbar).is('.vertical')) { $('div.admin-blocks', toolbar).animate({width:'0px'}, 'fast', function() { $(this).css('display', 'none'); }); - if ($(toolbar).is('.nw') || $(toolbar).is('sw')) { + if ($(toolbar).is('.nw') || $(toolbar).is('.sw')) { $(document.body).animate({marginLeft:'0px'}, 'fast', function() { $(this).toggleClass('admin-expanded'); }); } else { @@ -116,7 +116,7 @@ } else { $('div.admin-blocks', toolbar).animate({height:'0px'}, 'fast'); - if ($(toolbar).is('.nw') || $(toolbar).is('ne')) { + if ($(toolbar).is('.nw') || $(toolbar).is('.ne')) { $(document.body).animate({marginTop:'0px'}, 'fast', function() { $(this).toggleClass('admin-expanded'); }); } else { @@ -125,10 +125,14 @@ } this.setState('expanded', 0); } + + + else { + if ($(toolbar).is('.vertical')) { $('div.admin-blocks', toolbar).animate({width:'260px'}, 'fast'); - if ($(toolbar).is('.nw') || $(toolbar).is('sw')) { + if ($(toolbar).is('.nw') || $(toolbar).is('.sw')) { $(document.body).animate({marginLeft:'260px'}, 'fast', function() { $(this).toggleClass('admin-expanded'); }); } else { @@ -137,7 +141,7 @@ } else { $('div.admin-blocks', toolbar).animate({height:'260px'}, 'fast'); - if ($(toolbar).is('.nw') || $(toolbar).is('ne')) { + if ($(toolbar).is('.nw') || $(toolbar).is('.ne')) { $(document.body).animate({marginTop:'260px'}, 'fast', function() { $(this).toggleClass('admin-expanded'); }); } else { @@ -151,6 +155,8 @@ this.setState('expanded', 1); } } + + }; /**