If you have an input checkbox of class delete and you click on it
(check it), it should ask for confirmation. Works for me. Does it not
work for you?

Massimo

On Dec 1, 9:33 pm, Iceberg <[EMAIL PROTECTED]> wrote:
> Hi pals,
>
> In views/web2py_ajax.html, there is a line:
>   $('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T
> ('Sure you want to delete this object?')}}")) this.checked=false;');
>
> What is it for? I tried define a checkbox or a radio button with
> "_class='delete'", then click it again and again, but nothing special
> happened.
>
> Besides, I guess there should not be an excalmatory mark in front of
> the "confirm(...)". But I can not test it anyway.
>
> Yours,
> Iceberg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to