web/formwidgets.py
branchstable
changeset 4250 39adce674a09
parent 4212 ab6573088b4a
child 4252 6c4f109c2b03
equal deleted inserted replaced
4247:b1d79216d930 4250:39adce674a09
   477             attrs['onclick'] = "postForm('__action_%s', \'%s\', \'%s\')" % (
   477             attrs['onclick'] = "postForm('__action_%s', \'%s\', \'%s\')" % (
   478                 self.cwaction, self.label, form.domid)
   478                 self.cwaction, self.label, form.domid)
   479         elif self.onclick:
   479         elif self.onclick:
   480             attrs['onclick'] = self.onclick
   480             attrs['onclick'] = self.onclick
   481         if self.name:
   481         if self.name:
   482             attrs['name'] = name
   482             attrs['name'] = self.name
   483             if self.setdomid:
   483             if self.setdomid:
   484                 attrs['id'] = self.name
   484                 attrs['id'] = self.name
   485         if self.settabindex and not 'tabindex' in attrs:
   485         if self.settabindex and not 'tabindex' in attrs:
   486             attrs['tabindex'] = form.req.next_tabindex()
   486             attrs['tabindex'] = form.req.next_tabindex()
   487         if self.icon:
   487         if self.icon: