From ac9ba57fd2de2d529b1197fac080c0138f32633f Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 21 Feb 2013 17:30:45 +0530 Subject: [PATCH] update text panel --- static/js/pandora/textPanel.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/textPanel.js b/static/js/pandora/textPanel.js index de3fb9453..7d2c256cd 100644 --- a/static/js/pandora/textPanel.js +++ b/static/js/pandora/textPanel.js @@ -229,7 +229,7 @@ pandora.ui.textHTML = function(text, tags) { submit: function(data) { Ox.Request.clearCache('getText'); pandora.api.editText({ - id: ui.text, + id: pandora.user.ui.text, text: data.value }); } @@ -242,7 +242,10 @@ pandora.ui.textHTML = function(text, tags) { } 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() {