# HG changeset patch # User Julien Cristau # Date 1458057530 -3600 # Node ID 9f1c89e7426d9af0e7400a9cbb8f6a2c1ec85936 # Parent 74b04a88d28a2bde8b55415668c883ee6fe9659c [web/views] stop using cwaction='cancel' It's broken as of https://hg.logilab.org/master/cubicweb/rev/cb217b2b3 diff -r 74b04a88d28a -r 9f1c89e7426d cubicweb/web/views/editforms.py --- a/cubicweb/web/views/editforms.py Wed Mar 16 00:42:40 2016 +0100 +++ b/cubicweb/web/views/editforms.py Tue Mar 15 16:58:50 2016 +0100 @@ -52,7 +52,8 @@ domid = 'deleteconf' copy_nav_params = True form_buttons = [fw.Button(stdmsgs.BUTTON_DELETE, cwaction='delete'), - fw.Button(stdmsgs.BUTTON_CANCEL, cwaction='cancel')] + fw.Button(stdmsgs.BUTTON_CANCEL, + {'class': fw.Button.css_class + ' cwjs-edition-cancel'})] def __init__(self, *args, **kwargs): super(DeleteConfForm, self).__init__(*args, **kwargs) diff -r 74b04a88d28a -r 9f1c89e7426d cubicweb/web/views/workflow.py --- a/cubicweb/web/views/workflow.py Wed Mar 16 00:42:40 2016 +0100 +++ b/cubicweb/web/views/workflow.py Tue Mar 15 16:58:50 2016 +0100 @@ -86,7 +86,8 @@ form_renderer_id = 'base' # don't want EntityFormRenderer form_buttons = [fwdgs.SubmitButton(), - fwdgs.Button(stdmsgs.BUTTON_CANCEL, cwaction='cancel')] + fwdgs.Button(stdmsgs.BUTTON_CANCEL, + {'class': fwdgs.Button.css_class + ' cwjs-edition-cancel'})] class ChangeStateFormView(form.FormViewMixIn, EntityView):