diff --git a/static/js/pandora.js b/static/js/pandora.js index e8df4d7b..29507331 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -26,7 +26,6 @@ appPanel Ox.load({ UI: { - //debug: true, hideScreen: false, loadImages: true, showScreen: true, diff --git a/static/js/pandora/ui/browser.js b/static/js/pandora/ui/browser.js index 509b6964..1d4852be 100644 --- a/static/js/pandora/ui/browser.js +++ b/static/js/pandora/ui/browser.js @@ -29,7 +29,7 @@ pandora.ui.browser = function() { if (pandora.user.ui.listView == 'map') { pandora.$ui.map.resizeMap(); } else if (pandora.user.ui.listView == 'calendar') { - // ... + pandora.$ui.calendar.resizeCalendar(); } }, resizeend: function(data) { @@ -41,7 +41,7 @@ pandora.ui.browser = function() { if (pandora.user.ui.listView == 'map') { pandora.$ui.map.resizeMap(); } else if (pandora.user.ui.listView == 'calendar') { - // ... + pandora.$ui.calendar.resizeCalendar(); } } }); @@ -91,7 +91,7 @@ pandora.ui.browser = function() { if (pandora.user.ui.itemView == 'map') { pandora.ui.$map.resizeMap(); } else if (pandora.user.ui.itemView == 'calendar') { - // ... + pandora.ui.$calendar.resizeCalendar(); } }, select: function(data) { @@ -109,7 +109,7 @@ pandora.ui.browser = function() { if (pandora.user.ui.itemView == 'map') { pandora.$ui.map.resizeMap(); } else if (pandora.user.ui.itemView == 'calendar') { - // ... + pandora.$ui.calendar.resizeCalendar(); } }, pandora_icons: function(data) { diff --git a/static/js/pandora/ui/navigationView.js b/static/js/pandora/ui/navigationView.js index a7660838..ba341c52 100644 --- a/static/js/pandora/ui/navigationView.js +++ b/static/js/pandora/ui/navigationView.js @@ -180,6 +180,8 @@ pandora.ui.navigationView = function(type, videoRatio) { } }) ); + // needed for resize handlers further up + pandora.$ui.map = $element; } else { @@ -205,6 +207,8 @@ pandora.ui.navigationView = function(type, videoRatio) { select: selectItem }) ); + // needed for resize handlers further up + pandora.$ui.calendar = $element; }); } @@ -285,9 +289,6 @@ pandora.ui.navigationView = function(type, videoRatio) { pandora.user.ui.mapSelection = ''; } - // fixme: this is needed for some resize handlers further up - pandora.$ui[type] = $element; - return that; }; \ No newline at end of file