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

2
NEWS
View File

@@ -1,3 +1,5 @@
- fix invalid HTML issue with popup (Stefanos Harhalakis,
Monte)
- fixed {popup} to properly handle inarray and function parameters and added
support for mouseoff and followmouse options (boots)

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;
}