I happened to find out that the "Confirmation dialog on delete" in
web2py_ajax.html is defined as:
$('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T
('Sure you want to delete this object?')}}")) this.checked=false;');
and it does NOT work.
But a slightly adjusted version:
$('.delete').click(function() { if(this.checked) if(!confirm("{{=T
('Sure you want to delete this object?')}}")) this.checked=false; });
WORKS.
I am not a javascript expert to tell the reason. But if your test is
same as mine, I'd suggest to adjust web2py_ajax.html, as well as
instructions here: http://mdp.cti.depaul.edu/AlterEgo/default/edit/90
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---