From 3881bfbcc0eac9097c14304448e85e5ead2ef949 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 8 Jan 2004 09:06:15 +0000 Subject: [PATCH] fix to allow to set more then one onLoad parameter in the body tag: the get concated, so dont forget the ';' after each one!!! --- phpgwapi/inc/class.javascript.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.javascript.inc.php b/phpgwapi/inc/class.javascript.inc.php index 9efc944168..44f8248177 100644 --- a/phpgwapi/inc/class.javascript.inc.php +++ b/phpgwapi/inc/class.javascript.inc.php @@ -64,7 +64,7 @@ */ function javascript() { - $this->t = CreateObject('phpgwapi.Template', ExecMethod('phpgwapi.phpgw.common.get_tpl_dir','phpgwapi')); + //$this->t = CreateObject('phpgwapi.Template', ExecMethod('phpgwapi.phpgw.common.get_tpl_dir','phpgwapi')); //not currently used, but will be soon - I hope :) } @@ -147,7 +147,7 @@ */ function set_onload($code) { - $this->body['onLoad'] = $code; + $this->body['onLoad'] .= $code; } /** @@ -157,7 +157,7 @@ */ function set_onunload($code) { - $this->body['onUnload'] = $code; + $this->body['onUnload'] .= $code; } /**