diff --git a/static/js/pandora/ui/browser.js b/static/js/pandora/ui/browser.js index 1d4852beb..423a5ffad 100644 --- a/static/js/pandora/ui/browser.js +++ b/static/js/pandora/ui/browser.js @@ -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') { diff --git a/static/js/pandora/ui/info.js b/static/js/pandora/ui/info.js index ff6d0e2e1..91b769cd0 100644 --- a/static/js/pandora/ui/info.js +++ b/static/js/pandora/ui/info.js @@ -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() { diff --git a/static/js/pandora/ui/leftPanel.js b/static/js/pandora/ui/leftPanel.js index ebaf48e98..98dc5b301 100644 --- a/static/js/pandora/ui/leftPanel.js +++ b/static/js/pandora/ui/leftPanel.js @@ -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(); diff --git a/static/js/pandora/ui/menu.js b/static/js/pandora/ui/menu.js index 9b340d553..1d44ce961 100644 --- a/static/js/pandora/ui/menu.js +++ b/static/js/pandora/ui/menu.js @@ -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); } },