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