split up pandora.js

This commit is contained in:
j 2011-05-25 21:42:45 +02:00
commit 6073a1cd19
41 changed files with 4508 additions and 3931 deletions

View file

@ -0,0 +1,29 @@
// 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;
};