summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-03-01 22:33:12 +0000
committerthomascube <thomas@roundcube.net>2011-03-01 22:33:12 +0000
commit044d6647e060adb88fc56dd687f2ea810d73fdb1 (patch)
tree388fb9ed733f7e97f7318088469d6a9bc694a672 /program/include/main.inc
parente49064282339bf08f0dfcce4224a20ec055f32ac (diff)
Make it easier to add code to $(document).ready()
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index a930aeb34..64fea702d 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1661,8 +1661,7 @@ function rcmail_quota_display($attrib)
$quota = rcmail_quota_content($attrib);
- $OUTPUT->add_script('$(document).ready(function(){
- rcmail.set_quota('.json_serialize($quota).')});', 'foot');
+ $OUTPUT->add_script('rcmail.set_quota('.json_serialize($quota).');', 'docready');
return html::span($attrib, '');
}