mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:18:54 +01:00
added function to set onResize attribute for the body tag.
This commit is contained in:
parent
f75a66cc05
commit
218a56178e
@ -86,8 +86,9 @@
|
||||
*/
|
||||
function get_body_attribs()
|
||||
{
|
||||
$js = ($this->body['onLoad'] ? 'onLoad="' . $this->body['onLoad'] . '"' : '');
|
||||
$js .= ($this->body['onUnload'] ? 'onUnLoad="' . $this->body['onUnload'] . '"': '');
|
||||
$js = ($this->body['onLoad'] ? 'onLoad="' . addslashes($this->body['onLoad']) . '"' : '');
|
||||
$js .= ($this->body['onUnload'] ? 'onUnLoad="' . addslashes($this->body['onUnload']) . '"': '');
|
||||
$js .= ($this->body['onResize'] ? 'onResize="' . addslashes($this->body['onResize']) . '"': '');
|
||||
return $js;
|
||||
}
|
||||
|
||||
@ -159,6 +160,16 @@
|
||||
$this->body['onUnload'] .= $code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets an onResize action for a page
|
||||
*
|
||||
* @param string javascript to be used
|
||||
*/
|
||||
function set_onresize($code)
|
||||
{
|
||||
$this->body['onResize'] .= $code;
|
||||
}
|
||||
|
||||
/**
|
||||
* DO NOT USE - NOT SURE IF I AM GOING TO USE IT - ALSO IT NEEDS SOME CHANGES!!!!
|
||||
* Used for removing a file or package of files to be included in the head section of a page
|
||||
|
Loading…
Reference in New Issue
Block a user