This commit is contained in:
j 2011-06-06 17:55:37 +02:00
commit 1be60ffa6c
7 changed files with 267 additions and 8 deletions

View file

@ -2,16 +2,20 @@
pandora.ui.rightPanel = function() {
var that;
if (pandora.user.ui.section == 'site') {
that = new Ox.Element()
.html(pandora.user.ui.sitePage)
.bindEvent({
resize: function(event, data) {
}
});
if (pandora.user.ui.sitePage == 'home') {
that = pandora.ui.homePage()
.bindEvent({
resize: function(data) {
that.resize();
}
});
} else {
that = new Ox.Element()
.css({padding: '8px'});
pandora.api.getPage(pandora.user.ui.sitePage, function(result) {
that.html(result.data.body).css({'overflow-y':'auto'});
that.html(result.data.body).css({overflowY: 'auto'});
});
}
} else if (pandora.user.ui.section == 'items') {
that = new Ox.SplitPanel({
elements: [