From f4ab2539be303c22aede6f529871e6bc7f7db113 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 4 Feb 2012 08:59:27 +0000 Subject: [PATCH] fix some onload errors --- static/js/pandora/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 098cd2a0..3284bb59 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1003,11 +1003,11 @@ pandora.resizeWindow = function() { - Ox.UI.SCROLLBAR_SIZE }); } else if (pandora.user.ui.listView == 'map') { - pandora.$ui.map.resizeMap(); + pandora.$ui.map && pandora.$ui.map.resizeMap(); } else if (pandora.user.ui.listView == 'calendar') { - pandora.$ui.calendar.resizeCalendar(); + pandora.$ui.calendar && pandora.$ui.calendar.resizeCalendar(); } else { - pandora.$ui.list.size(); + pandora.$ui.list && pandora.$ui.list.size(); } } else { pandora.$ui.browser.scrollToSelection();