cvs: smarty / NEWS /libs/plugins function.popup.php

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1103143325@cvsserver>
mohrt		Wed Dec 15 15:42:05 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs/plugins	function.popup.php 
  Log:
  fix invalid HTML issue with popup
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.480&r2=1.481&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.480 smarty/NEWS:1.481
--- smarty/NEWS:1.480	Mon Dec  6 15:09:11 2004
+++ smarty/NEWS	Wed Dec 15 15:42:05 2004
@@ -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)
 
http://cvs.php.net/diff.php/smarty/libs/plugins/function.popup.php?r1=1.15&r2=1.16&ty=u
Index: smarty/libs/plugins/function.popup.php
diff -u smarty/libs/plugins/function.popup.php:1.15 smarty/libs/plugins/function.popup.php:1.16
--- smarty/libs/plugins/function.popup.php:1.15	Mon Dec  6 15:09:12 2004
+++ smarty/libs/plugins/function.popup.php	Wed Dec 15 15:42:05 2004
@@ -104,7 +104,10 @@
     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;
 }

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.