From d4e5476304af2d83fb8ad2b1bf39aa6c17d7dc92 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 13 Jun 2010 07:44:53 +0000 Subject: [PATCH] returning content of onXXX tag after adding code --- phpgwapi/inc/class.egw_framework.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 6503ef1665..1acd2f44ea 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -928,30 +928,33 @@ abstract class egw_framework * Sets an onLoad action for a page * * @param string javascript to be used + * @return string content of onXXX tag after adding code */ static function set_onload($code) { - self::$body_tags['onLoad'] .= $code; + return self::$body_tags['onLoad'] .= $code; } /** * Sets an onUnload action for a page * * @param string javascript to be used + * @return string content of onXXX tag after adding code */ static function set_onunload($code) { - self::$body_tags['onUnload'] .= $code; + return self::$body_tags['onUnload'] .= $code; } /** * Sets an onResize action for a page * * @param string javascript to be used + * @return string content of onXXX tag after adding code */ static function set_onresize($code) { - self::$body_tags['onResize'] .= $code; + return self::$body_tags['onResize'] .= $code; } /**