avoid some errors resetting asiftv
This commit is contained in:
parent
14bc488420
commit
ca63fa7b93
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ pandora.ui.rightPanel = function() {
|
||||||
} else if (pandora.user.ui.itemView == 'player') {
|
} else if (pandora.user.ui.itemView == 'player') {
|
||||||
pandora.$ui.player.options({width: data.size});
|
pandora.$ui.player.options({width: data.size});
|
||||||
} else if (pandora.user.ui.itemView == 'editor') {
|
} else if (pandora.user.ui.itemView == 'editor') {
|
||||||
pandora.$ui.editor.options({width: data.size});
|
pandora.$ui.editor && pandora.$ui.editor.options({width: data.size});
|
||||||
} else if (pandora.user.ui.listView == 'map') {
|
} else if (pandora.user.ui.listView == 'map') {
|
||||||
pandora.$ui.map.resizeMap();
|
pandora.$ui.map.resizeMap();
|
||||||
} else if (pandora.user.ui.listView == 'calendar') {
|
} else if (pandora.user.ui.listView == 'calendar') {
|
||||||
|
|
|
@ -2135,9 +2135,9 @@ pandora.resizeFolders = function(section) {
|
||||||
) - 8);
|
) - 8);
|
||||||
Ox.forEach(pandora.$ui.folderList, function($list, id) {
|
Ox.forEach(pandora.$ui.folderList, function($list, id) {
|
||||||
var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id);
|
var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id);
|
||||||
pandora.$ui.folder[pos].css({width: width + 'px'});
|
pandora.$ui.folder[pos] && pandora.$ui.folder[pos].css({width: width + 'px'});
|
||||||
$list.css({width: width + 'px'});
|
$list.css({width: width + 'px'});
|
||||||
if (pandora.site.sectionFolders[section][pos].showBrowser) {
|
if (pandora.site.sectionFolders[section][pos] && pandora.site.sectionFolders[section][pos].showBrowser) {
|
||||||
pandora.$ui.findListsInput[id] && pandora.$ui.findListsInput[id].options({
|
pandora.$ui.findListsInput[id] && pandora.$ui.findListsInput[id].options({
|
||||||
width: width - 24
|
width: width - 24
|
||||||
});
|
});
|
||||||
|
@ -2146,7 +2146,7 @@ pandora.resizeFolders = function(section) {
|
||||||
} else {
|
} else {
|
||||||
$list.resizeColumn(id == 'favorite' ? 'id' : 'name', columnWidth);
|
$list.resizeColumn(id == 'favorite' ? 'id' : 'name', columnWidth);
|
||||||
}
|
}
|
||||||
if (!pandora.user.ui.showFolder[section][id]) {
|
if (pandora.$ui.folder[pos] && !pandora.user.ui.showFolder[section][id]) {
|
||||||
pandora.$ui.folder[pos].updatePanel();
|
pandora.$ui.folder[pos].updatePanel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue