mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
returning content of onXXX tag after adding code
This commit is contained in:
parent
f54410da4f
commit
d4e5476304
@ -928,30 +928,33 @@ abstract class egw_framework
|
|||||||
* Sets an onLoad action for a page
|
* Sets an onLoad action for a page
|
||||||
*
|
*
|
||||||
* @param string javascript to be used
|
* @param string javascript to be used
|
||||||
|
* @return string content of onXXX tag after adding code
|
||||||
*/
|
*/
|
||||||
static function set_onload($code)
|
static function set_onload($code)
|
||||||
{
|
{
|
||||||
self::$body_tags['onLoad'] .= $code;
|
return self::$body_tags['onLoad'] .= $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an onUnload action for a page
|
* Sets an onUnload action for a page
|
||||||
*
|
*
|
||||||
* @param string javascript to be used
|
* @param string javascript to be used
|
||||||
|
* @return string content of onXXX tag after adding code
|
||||||
*/
|
*/
|
||||||
static function set_onunload($code)
|
static function set_onunload($code)
|
||||||
{
|
{
|
||||||
self::$body_tags['onUnload'] .= $code;
|
return self::$body_tags['onUnload'] .= $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an onResize action for a page
|
* Sets an onResize action for a page
|
||||||
*
|
*
|
||||||
* @param string javascript to be used
|
* @param string javascript to be used
|
||||||
|
* @return string content of onXXX tag after adding code
|
||||||
*/
|
*/
|
||||||
static function set_onresize($code)
|
static function set_onresize($code)
|
||||||
{
|
{
|
||||||
self::$body_tags['onResize'] .= $code;
|
return self::$body_tags['onResize'] .= $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user