That is correct. I could not figure out the problem so I left "live"
in there. If you or anybody else have any time to experiment would be
great. I will soon release an app that uses this so you may want to
wait for that to test it.

massimo

On Dec 18, 9:29 am, Anthony <abasta...@gmail.com> wrote:
> On Saturday, December 17, 2011 11:02:49 PM UTC-5, Massimo Di Pierro wrote:
>
> > The jquery.checkbox plugin replaces the usual checkbox with a [yes]/
> > [no] slider. If I replace 'slide' with 'click' the [yes]/[no] behaves
> > the opposite way (yes for unchecked and no for checked). weird.
>
> Are you saying:
>
> jQuery("input[type='checkbox'].delete", target).click(...)
>
> causes your yes/no slider to misbehave, but
>
> jQuery("input[type='checkbox'].delete", target).live('click', ...)
>
> does not? What does "slide" have to do with it?
>
> What do you suggest we do with web2py.js? If we use .live('click', ...), a
> component loaded with a delete checkbox in it will get the handler twice,
> which causes problems (that's why we originally changed it from .live to
> .click, as well as adding the 'target' context to the selector).
>
> Anthony

Reply via email to