From 8c5f173b21b9c024ba97a6f9faf6e31da1121aac Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 14 Jul 2013 22:37:04 +0000 Subject: [PATCH] fix a potential JS error when resizing on load --- static/js/pandora/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 52b482d7..aec34e5f 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1530,7 +1530,7 @@ pandora.resizeFolders = function() { ), userColumnWidth = Math.round(columnWidth * 0.4), nameColumnWidth = columnWidth - userColumnWidth; - pandora.$ui.allItems.resizeElement(columnWidth - 8); + pandora.$ui.allItems && pandora.$ui.allItems.resizeElement(columnWidth - 8); Ox.forEach(pandora.$ui.folderList, function($list, id) { var pos = Ox.getIndexById(pandora.site.sectionFolders[pandora.user.ui.section], id); pandora.$ui.folder[pos].css({width: width + 'px'});