Hi Olivier,

On Wed, Nov 1, 2017 at 9:46 PM, Olivier DUTRIEUX <
[email protected]> wrote:

> No new about this problem : I need to create a jira issue ?
>

Yes, please!


>
> Duto
>
>
> > -----Message d'origine-----
> > De : Olivier DUTRIEUX [mailto:[email protected]]
> > Envoyé : samedi 30 septembre 2017 23:21
> > À : [email protected]
> > Objet : PrependJavaScript to replace a composant with animation
> >
> > Hello,
> >
> > I use the functionnality of prependJavaScript to replace a composant with
> > animation, but I have I a problem when I have two functions (on
> difference
> > composants), one with normal syntax like this :
> >
> > target.prependJavaScript("$('" + c.getMarkupId() +
> > "').selectpicker('destroy')");
> >
> > and I other one with special syntax for animation :
> >
> > target.prependJavaScript(String.format("notify|var
> > c=$('#%s.collapse');if(c.length){c.on('hidden.bs.
> collapse',function(){notify();}
> > );c.collapse('hide');}else{notify();}", c.getMarkupId()));
> >
> > I get a error when wicket evaluate the javascript :
> >
> > ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
> javascript:
> > SyntaxError: expected expression, got keyword 'var', text:
> > (function(){$('#identifiedPerson17f').selectpicker('destroy');})();(
> function(){n
> > otify|var
> > c=$('#identifiedPersonContainer161.collapse');if(c.length){c.on('
> hidden.bs.co
> > llapse',function(){notify();});c.collapse('hide');}else{notify();}})();
> >
> > Thanks advance for your help
> >
> > Duto
>

Reply via email to