--- a/web/formwidgets.py Wed Jul 08 09:37:06 2015 +0200
+++ b/web/formwidgets.py Thu Jul 09 16:43:56 2015 +0200
@@ -1040,11 +1040,11 @@
self.value = ''
self.onclick = onclick
self.cwaction = cwaction
- self.attrs.setdefault('class', self.css_class)
def render(self, form, field=None, renderer=None):
label = form._cw._(self.label)
attrs = self.attrs.copy()
+ attrs.setdefault('class', self.css_class)
if self.cwaction:
assert self.onclick is None
attrs['onclick'] = "postForm('__action_%s', \'%s\', \'%s\')" % (