toggle toggle toggle

This commit is contained in:
j 2011-10-09 16:52:53 +02:00
parent dd6d015fc0
commit 7890183e01
4 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,7 @@ pandora.ui.browser = function() {
toggle: function(data) {
data.collapsed && pandora.$ui.list.gainFocus();
pandora.UI.set({showGroups: !data.collapsed});
pandora.$ui.mainMenu.getItem('viewMenu_togglegroups').toggleTitle();
if (pandora.user.ui.listView == 'map') {
pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.listView == 'calendar') {

View file

@ -9,6 +9,7 @@ pandora.ui.info = function() {
.bindEvent({
toggle: function(data) {
pandora.UI.set({showInfo: !data.collapsed});
pandora.$ui.mainMenu.getItem('viewMenu_toggleinfo').toggleTitle();
pandora.resizeFolders();
},
pandora_find: function() {

View file

@ -45,6 +45,7 @@ pandora.ui.leftPanel = function() {
},
toggle: function(data) {
pandora.UI.set({showSidebar: !data.collapsed});
pandora.$ui.mainMenu.getItem('viewMenu_togglelists').toggleTitle();
if (data.collapsed) {
Ox.forEach(pandora.$ui.folderList, function($list) {
$list.loseFocus();

View file

@ -264,10 +264,13 @@ pandora.ui.mainMenu = function() {
} else if (data.id == 'clearcache') {
Ox.Request.clearCache();
} else if (data.id == 'togglegroups') {
that.getItem('viewMenu_togglegroups').toggleTitle();
pandora.$ui.contentPanel.toggle(0);
} else if (data.id == 'toggleinfo') {
that.getItem('viewMenu_toggleinfo').toggleTitle();
pandora.$ui.leftPanel.toggle(2);
} else if (data.id == 'togglelists') {
that.getItem('viewMenu_togglelists').toggleTitle();
pandora.$ui.mainPanel.toggle(0);
}
},