mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
fix invalid HTML issue with popup
This commit is contained in:
2
NEWS
2
NEWS
@@ -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)
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user