web/formwidgets.py
changeset 4597 e872097f2287
parent 4593 d0b5ef72a492
child 4627 54de0ddd0bf3
--- 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)