add page titles; various bugfixes related to urls

This commit is contained in:
rolux 2011-10-08 14:52:00 +00:00
commit c14effdf9c
5 changed files with 27 additions and 23 deletions

View file

@ -10,8 +10,7 @@ pandora.ui.item = function() {
}, pandora.user.level == 'admin' && pandora.user.ui.itemView == 'info' ? 0 : -1, function(result) {
if (result.status.code == 200) {
// fixme: probably does not belong here
document.title = '0xDB - ' + Ox.stripTags(result.data.title);
document.title = pandora.getPageTitle(result.data.title);
}
/*if (result.status.code != 200) {

View file

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