From f6b1b8e03e9a11c382b4560a839350dced8ea752 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 4 Apr 2004 19:31:30 +0000 Subject: [PATCH] fix to get IE and HTMLarea working together again, HTMLarea seems not to work in IE, if a is set. This was done to get relative image-pathes working. --- phpgwapi/inc/class.html.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 7bb0aa3b0f..21cfeedeac 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -177,7 +177,7 @@ else { $GLOBALS['phpgw_info']['flags']['java_script'] .= -''."\n"; + ''."\n"; } $GLOBALS['phpgw_info']['flags']['java_script_thirst'] .= @@ -189,7 +189,7 @@ \n"; // set a base href to get relative image-pathes working - if ($base_href) + if ($base_href && $this->user_agent != 'msie') // HTMLarea does not work in IE with base href set !!! { $GLOBALS['phpgw_info']['flags']['java_script_thirst'] .= 'phpgwapi_js_url/htmlarea/'; \n"; } -// echo $GLOBALS['phpgw_info']['flags']['java_script']; -// die('test'); $id = str_replace(array('[',']'),array('_',''),$name); // no brakets in the id allowed by js $GLOBALS['phpgw']->js->set_onload("HTMLArea.replace('$id',htmlareaConfig);");