The jQuery code for confirmation on delete connects the onclick event
of the checkbox with a confirmation dialog. I would like this
confirmation dialog to be triggered by the submit button.
Is it possible to re-write the code in web2py_ajax.html:
jQuery("input[type='checkbox'].delete").click(function() { if
(this.checked) if(!confirm("{{=T('Sure you want to delete this
object?')}}")) this.checked=false; });
... so that the code connects to the onclick event of the submit and
not the onclick event of the checkbox?
Kind regards,
Annet.