--- a/web/formwidgets.py Tue Feb 16 10:42:04 2010 +0100
+++ b/web/formwidgets.py Tue Feb 16 11:30:52 2010 +0100
@@ -521,9 +521,9 @@
def init_ajax_attributes(attrs, wdgtype, loadtype=u'auto'):
try:
- attrs['klass'] += u' widget'
+ attrs['class'] += u' widget'
except KeyError:
- attrs['klass'] = u'widget'
+ attrs['class'] = u'widget'
attrs.setdefault('cubicweb:wdgtype', wdgtype)
attrs.setdefault('cubicweb:loadtype', loadtype)
@@ -639,7 +639,7 @@
self.value = ''
self.onclick = onclick
self.cwaction = cwaction
- self.attrs.setdefault('klass', 'validateButton')
+ self.attrs.setdefault('class', 'validateButton')
def render(self, form, field=None, renderer=None):
label = form._cw._(self.label)