cablegates/static/js/pandora/ui/mainPanel.js

22 lines
606 B
JavaScript
Raw Normal View History

2011-05-25 19:42:45 +00:00
// vim: et:ts=4:sw=4:sts=4:ft=js
pandora.ui.mainPanel = function() {
var that = new Ox.SplitPanel({
elements: [
{
collapsible: true,
collapsed: !app.user.ui.showSidebar,
element: app.$ui.leftPanel = pandora.ui.leftPanel(),
resizable: true,
resize: [192, 256, 320, 384],
size: app.user.ui.sidebarSize
},
{
element: app.$ui.rightPanel = pandora.ui.rightPanel()
}
],
orientation: 'horizontal'
})
return that;
};