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.appPanel = function() {
|
2011-06-19 17:49:25 +00:00
|
|
|
var that = Ox.SplitPanel({
|
2011-05-25 19:42:45 +00:00
|
|
|
elements: [
|
|
|
|
{
|
2011-06-06 15:48:11 +00:00
|
|
|
element: pandora.$ui.mainMenu = pandora.ui.mainMenu(),
|
2011-05-25 19:42:45 +00:00
|
|
|
size: 20
|
|
|
|
},
|
|
|
|
{
|
2011-06-06 15:48:11 +00:00
|
|
|
element: pandora.$ui.mainPanel = pandora.ui.mainPanel()
|
2011-05-25 19:42:45 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
orientation: 'vertical'
|
|
|
|
});
|
|
|
|
that.display = function() {
|
|
|
|
// fixme: move animation into Ox.App
|
2011-06-06 15:48:11 +00:00
|
|
|
pandora.$ui.body.css({opacity: 0});
|
|
|
|
that.appendTo(pandora.$ui.body);
|
|
|
|
pandora.$ui.body.animate({opacity: 1}, 1000);
|
2011-05-25 19:42:45 +00:00
|
|
|
return that;
|
|
|
|
}
|
|
|
|
that.reload = function() {
|
2011-06-06 15:48:11 +00:00
|
|
|
pandora.$ui.appPanel.removeElement();
|
|
|
|
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(pandora.$ui.body);
|
2011-05-25 19:42:45 +00:00
|
|
|
return that;
|
|
|
|
}
|
|
|
|
return that;
|
|
|
|
};
|
|
|
|
|