summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-03-01 22:35:58 +0000
committerthomascube <thomas@roundcube.net>2011-03-01 22:35:58 +0000
commit79cd6cefd5996031ebb93ffdac609d503553afb0 (patch)
tree8376f84f98cfc148973a767ab1812d990e94303d
parent044d6647e060adb88fc56dd687f2ea810d73fdb1 (diff)
Simplify code
-rwxr-xr-xprogram/include/rcube_template.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index a686ec8ad..6bd72951b 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -75,12 +75,11 @@ class rcube_template extends rcube_html_page
$this->set_skin($this->config['skin']);
// add common javascripts
- $javascript = 'var '.JS_OBJECT_NAME.' = new rcube_webmail();';
+ $this->add_script('var '.JS_OBJECT_NAME.' = new rcube_webmail();', 'head_top');
// don't wait for page onload. Call init at the bottom of the page (delayed)
$this->add_script(JS_OBJECT_NAME.'.init();', 'docready');
- $this->add_script($javascript, 'head_top');
$this->scripts_path = 'program/js/';
$this->include_script('jquery-1.5.min.js');
$this->include_script('common.js');