fix text resize, edit title/redirect

This commit is contained in:
j 2013-08-17 16:32:33 +02:00
parent 9a288e8893
commit 58081e1f16
2 changed files with 12 additions and 4 deletions

View file

@ -240,7 +240,11 @@ pandora.ui.textHTML = function(text) {
id: pandora.user.ui.text,
name: data.value
}, function(result) {
Ox.print('RESULT.DATA:', result.data);
if (result.data.id != pandora.user.ui.text) {
Ox.Request.clearCache();
pandora.renameList(pandora.user.ui.text, result.data.id, result.data.name);
pandora.$ui.info.updateListInfo();
}
});
}
})
@ -287,7 +291,6 @@ pandora.ui.textHTML = function(text) {
})
.bindEvent({
submit: function(data) {
Ox.print('SUBMIT', data.value);
Ox.Request.clearCache('getText');
pandora.api.editText({
id: pandora.user.ui.text,
@ -308,13 +311,15 @@ pandora.ui.textHTML = function(text) {
return window.innerWidth
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1
- pandora.user.ui.embedSize - 1
- 32;
- 32 - 16;
}
that.update = function() {
$text.options({
maxHeight: getHeight(),
width: getWidth()
}).css({
width: getWidth() + 'px'
});
return that;
};

View file

@ -1901,6 +1901,9 @@ pandora.resizeFolders = function(section) {
pandora.$ui.folder[pos].updatePanel();
}
});
if (pandora.user.ui.section == 'texts') {
pandora.$ui.text && pandora.$ui.text.update();
}
};
pandora.resizeWindow = function() {
@ -1981,7 +1984,7 @@ pandora.resizeWindow = function() {
});
}
} else if (pandora.user.ui.section == 'texts') {
// ...
pandora.$ui.text && pandora.$ui.text.update();
}
};