[web2py] Re: How can I disable the delete confirmation in SQLFORM.grid ?
Yes Anthony, I think such an option is missing, as usually you just want to disable that for few grids... -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: How can I disable the delete confirmation in SQLFORM.grid ?
Ok, so it's not included in the grid options. changing it in web2py.js would disable the confirmation globally, that's a bit dangerous for other tables. I would prefer to do it only for 1 particular table. Or maybe creating a web2py_noconfirm.js included in a layout_noconfirm.html ? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: How can I disable the delete confirmation in SQLFORM.grid ?
Do you want to disable the confirm message when clicking the Delete buttons on the grid itself? In that case, the confirmation is not controlled by the code in web2py.js. For those buttons, there is an onclick handler defined in the button element itself. We should probably include an option to remove the confirmation from that handler. Anthony On Saturday, February 9, 2013 6:18:28 AM UTC-5, François Delpierre wrote: Ok, so it's not included in the grid options. changing it in web2py.js would disable the confirmation globally, that's a bit dangerous for other tables. I would prefer to do it only for 1 particular table. Or maybe creating a web2py_noconfirm.js included in a layout_noconfirm.html ? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: How can I disable the delete confirmation in SQLFORM.grid ?
The confirmation is handled via js. You need to edit web2py.js. On Tuesday, 29 January 2013 12:21:12 UTC-6, François Delpierre wrote: -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.