jquery widgetbox jeditable example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jquery widgetbox jeditable example

mmimica
Hello!

        Not sure this is the right place, but the example page for WidgetBox jeditable
component is whole wrong. It *installs* the script in onClick event. The
consequence is that the first click is ignored. Should read "script:" instead of
"onClick:" I guess.


html paragraph
        onClick: (html jQuery this editable
                        callback: [:value | "used to let the user show the Saving... message,
otherwise it is too fast"
                                (Delay forSeconds: 1) wait. text := value];
                        submit: 'keep it';
                        cancel: 'forget about that';
                        indicator: 'Saving...');


--
Milan Mimica
http://sparklet.sf.net
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: jquery widgetbox jeditable example

Robert Sirois
I'm not familiar with the widgetbox stuff (Torsten would know), but I might suggest a #timeout: type function instead of holding the process in the callback.
 
RS
 
> Date: Fri, 25 Feb 2011 00:23:45 +0100

> From: [hidden email]
> To: [hidden email]
> Subject: [Seaside] jquery widgetbox jeditable example
>
> Hello!
>
> Not sure this is the right place, but the example page for WidgetBox jeditable
> component is whole wrong. It *installs* the script in onClick event. The
> consequence is that the first click is ignored. Should read "script:" instead of
> "onClick:" I guess.
>
>
> html paragraph
> onClick: (html jQuery this editable
> callback: [:value | "used to let the user show the Saving... message,
> otherwise it is too fast"
> (Delay forSeconds: 1) wait. text := value];
> submit: 'keep it';
> cancel: 'forget about that';
> indicator: 'Saving...');
>
>
> --
> Milan Mimica
> http://sparklet.sf.net
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside