cablegates/static/js/pandora/ui/contentPanel.js

32 lines
1,015 B
JavaScript
Raw Normal View History

2011-07-29 18:37:11 +00:00
// vim: et:ts=4:sw=4:sts=4:ft=javascript
2011-05-25 19:42:45 +00:00
pandora.ui.contentPanel = function() {
2011-06-19 17:49:25 +00:00
var that = Ox.SplitPanel({
2011-06-06 15:48:11 +00:00
elements: pandora.user.ui.item == '' ? [
2011-05-25 19:42:45 +00:00
{
2011-06-06 15:48:11 +00:00
collapsed: !pandora.user.ui.showGroups,
2011-05-25 19:42:45 +00:00
collapsible: true,
2011-06-06 15:48:11 +00:00
element: pandora.$ui.browser = pandora.ui.browser(),
2011-05-25 19:42:45 +00:00
resizable: true,
resize: [96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256],
2011-06-06 15:48:11 +00:00
size: pandora.user.ui.groupsSize
2011-05-25 19:42:45 +00:00
},
{
element: pandora.$ui.list = pandora.ui.list()
2011-05-25 19:42:45 +00:00
}
] : [
{
2011-06-06 15:48:11 +00:00
collapsed: !pandora.user.ui.showMovies,
2011-05-25 19:42:45 +00:00
collapsible: true,
2011-06-06 15:48:11 +00:00
element: pandora.$ui.browser = pandora.ui.browser(),
2011-05-25 19:42:45 +00:00
size: 112 + Ox.UI.SCROLLBAR_SIZE
},
{
element: pandora.$ui.item = pandora.ui.item()
2011-05-25 19:42:45 +00:00
}
],
orientation: 'vertical'
2011-06-01 13:16:50 +00:00
});
2011-05-25 19:42:45 +00:00
return that;
};