cablegates/static/js/pandora/ui/contentPanel.js
2011-06-19 19:49:25 +02:00

31 lines
1.1 KiB
JavaScript

// vim: et:ts=4:sw=4:sts=4:ft=js
pandora.ui.contentPanel = function() {
var that = Ox.SplitPanel({
elements: pandora.user.ui.item == '' ? [
{
collapsed: !pandora.user.ui.showGroups,
collapsible: true,
element: pandora.$ui.browser = pandora.ui.browser(),
resizable: true,
resize: [96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256],
size: pandora.user.ui.groupsSize
},
{
element: pandora.$ui.list = pandora.ui.list(pandora.user.ui.lists[pandora.user.ui.list].listView)
}
] : [
{
collapsed: !pandora.user.ui.showMovies,
collapsible: true,
element: pandora.$ui.browser = pandora.ui.browser(),
size: 112 + Ox.UI.SCROLLBAR_SIZE
},
{
element: pandora.$ui.item = pandora.ui.item(pandora.user.ui.item, pandora.user.ui.itemView)
}
],
orientation: 'vertical'
});
return that;
};