mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24: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
|
- fixed {popup} to properly handle inarray and function parameters and added
|
||||||
support for mouseoff and followmouse options (boots)
|
support for mouseoff and followmouse options (boots)
|
||||||
|
|
||||||
|
@@ -104,7 +104,10 @@ function smarty_function_popup($params, &$smarty)
|
|||||||
if (empty($trigger)) { $trigger = "onmouseover"; }
|
if (empty($trigger)) { $trigger = "onmouseover"; }
|
||||||
|
|
||||||
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
|
$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;
|
return $retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user