[forms] We don't want cwjs-edition-cancel class on reledit's cancel button
Else it's bound to a js function that collides with onclick provided by reledit
code.
Closes #13120795
--- a/cubicweb/web/views/reledit.py Tue Jun 21 13:49:32 2016 +0200
+++ b/cubicweb/web/views/reledit.py Mon May 23 17:40:31 2016 +0200
@@ -303,6 +303,9 @@
button = copy.deepcopy(button)
button.cwaction = None
button.onclick = cancelclick
+ if 'class' in button.attrs:
+ new_class = button.attrs['class'].replace('cwjs-edition-cancel', '')
+ button.attrs['class'] = new_class
form_buttons.append(button)
form.form_buttons = form_buttons
else: # base