From 23796ec2909bf9cb3ae846f9d124a1098672c5ff Mon Sep 17 00:00:00 2001 From: svncommit Date: Mon, 18 Dec 2006 09:11:57 +0000 Subject: Fix display of quota image/text after a remote command. --- program/js/app.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 4bb261cda..55e38bfda 100644 --- a/program/js/app.js +++ b/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