update text panel

This commit is contained in:
rolux 2013-02-21 17:30:45 +05:30
parent c6aa89f5b6
commit ac9ba57fd2

View file

@ -229,7 +229,7 @@ pandora.ui.textHTML = function(text, tags) {
submit: function(data) { submit: function(data) {
Ox.Request.clearCache('getText'); Ox.Request.clearCache('getText');
pandora.api.editText({ pandora.api.editText({
id: ui.text, id: pandora.user.ui.text,
text: data.value text: data.value
}); });
} }
@ -242,7 +242,10 @@ pandora.ui.textHTML = function(text, tags) {
} }
function getWidth() { function getWidth() {
return window.innerWidth - pandora.user.ui.embedSize - 1 - 32; return window.innerWidth
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1
- pandora.user.ui.embedSize - 1
- 32;
} }
that.update = function() { that.update = function() {