fix a potential JS error when resizing on load

This commit is contained in:
rolux 2013-07-14 22:37:04 +00:00
parent c6cab8334c
commit 8c5f173b21

View file

@ -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'});