diff options
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 10 |
1 files changed, 7 insertions, 3 deletions
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); }; |