fix invalid HTML issue with popup

This commit is contained in:
mohrt
2004-12-15 20:42:05 +00:00
parent e0db39bf29
commit 5efa19cf96
2 changed files with 6 additions and 1 deletions

View File

@@ -104,7 +104,10 @@ function smarty_function_popup($params, &$smarty)
if (empty($trigger)) { $trigger = "onmouseover"; }
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
$retval .= $append . ');" onmouseout="nd();"';
$retval .= $append . ');"';
if ($trigger == 'onmouseover')
$retval .= ' onmouseout="nd();"';
return $retval;
}