From 751a2f9187255625c1b3cc7f7dfb02547e858fcf Mon Sep 17 00:00:00 2001 From: robin Date: Mon, 18 Dec 2006 09:11:57 +0000 Subject: Fix display of quota image/text after a remote command. git-svn-id: https://svn.roundcube.net/trunk@414 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 4bb261cda..55e38bfda 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3040,10 +3040,14 @@ function rcube_webmail() }; // replace content of quota display - this.set_quota = function(text) + this.set_quota = function() { - if (this.gui_objects.quotadisplay) - this.gui_objects.quotadisplay.innerHTML = text; + if (this.gui_objects.quotadisplay && + this.gui_objects.quotadisplay.attributes.getNamedItem('display') && + this.gui_objects.quotadisplay.attributes.getNamedItem('id')) + this.http_request('quotadisplay', '_display='+ + this.gui_objects.quotadisplay.attributes.getNamedItem('display').nodeValue+ + '&_id='+this.gui_objects.quotadisplay.attributes.getNamedItem('id').nodeValue, false); }; -- cgit v1.2.3