Re: [SMARTY] Popup Plugin: Single Quote Bug!?
| From: | messju mohr | Date: | Fri, 30 Jan 2004 10:23:53 +0000 |
| Subject: | Re: [SMARTY] Popup Plugin: Single Quote Bug!? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10898@lists.php.net to get a copy of this message | ||
On Fri, Jan 30, 2004 at 11:14:28AM +0100, Mario Deutschmann wrote:
> Hi all!
>
> I installed smarty 2.61 and overlib 3.51. while testing the examples on:
> http://smarty.php.net/manual/en/language.function.popup.php
>
> i got an javascript error on the second example. first example WORKS for me!
> smarty-source for 2nd example:
> ----------------------------------------------------------------
> <A href="mypage.html" {popup
> text="<UL><LI>links<LI>pages<LI>images</UL>"
> sticky=true caption="mypage
> contents"} >mypage</A>
> ----------------------------------------------------------------
>
> i looked at the html source and found this part:
> ----------------------------------------------------------------
> <A href="mypage.html" onmouseover="return
>
> overlib('<UL><LI>links<LI>pages<LI>images</UL>',STICKY,CAPTION','mypage
> contents');" onmouseout="nd();">mypage</A>
> ----------------------------------------------------------------
>
> the single quote ' after "CAPTION" seems wrong.
> has anyone the same problem?!
>
> the fixed class "plugins/function.popup.php" is attached and works for me.
>
> could someone test it and maybe commit the file?!
this was already fixed in cvs a few days ago. see:
http://cvs.php.net/cvs.php/smarty/libs/plugins/function.popup.php
> thanx in advance.
>
> kindly regards
> mario