cablegates/static/js/pandora/ui/appPanel.js

30 lines
860 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.appPanel = function() {
var that = new Ox.SplitPanel({
elements: [
{
element: app.$ui.mainMenu = pandora.ui.mainMenu(),
size: 20
},
{
element: app.$ui.mainPanel = pandora.ui.mainPanel()
}
],
orientation: 'vertical'
});
that.display = function() {
// fixme: move animation into Ox.App
app.$ui.body.css({opacity: 0});
that.appendTo(app.$ui.body);
app.$ui.body.animate({opacity: 1}, 1000);
return that;
}
that.reload = function() {
app.$ui.appPanel.removeElement();
app.$ui.appPanel = pandora.ui.appPanel().appendTo(app.$ui.body);
return that;
}
return that;
};