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

49 lines
1.7 KiB
JavaScript
Raw Permalink 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-09-05 13:03:14 +00:00
var that= Ox.SplitPanel({
2011-08-18 11:32:47 +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-09-04 21:15:53 +00:00
size: pandora.user.ui.groupsSize,
tooltip: 'groups'
2011-05-25 19:42:45 +00:00
},
{
2011-09-05 13:03:14 +00:00
element: pandora.$ui.mainContent = Ox.SplitPanel({
elements: [
{
element: pandora.$ui.list = pandora.ui.list()
},
{
element: Ox.Element().addClass('OxSelectable'),
collapsible: true,
collapsed: true,
size: 600,
resizable: true,
resize: [200, 400, 600]
}
],
orientation: 'horizontal'
})
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-09-04 21:15:53 +00:00
size: 112 + Ox.UI.SCROLLBAR_SIZE,
tooltip: pandora.site.itemName.plural.toLowerCase()
2011-05-25 19:42:45 +00:00
},
{
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;
};