[web formwidgets] add missing tabindex to jquery date and time widgets (closes #1568475)
--- a/web/formwidgets.py Mon Mar 28 14:49:22 2011 +0200
+++ b/web/formwidgets.py Mon Mar 28 15:16:11 2011 +0200
@@ -594,8 +594,11 @@
value = self.values(form, field)[0]
else:
value = self.datestr
+ attrs = {}
+ if self.settabindex:
+ attrs['tabindex'] = req.next_tabindex()
return tags.input(id=domid, name=domid, value=value,
- type='text', size='10')
+ type='text', size='10', **attrs)
class JQueryTimePicker(FieldWidget):
@@ -620,6 +623,9 @@
value = self.values(form, field)[0]
else:
value = self.timestr
+ attrs = {}
+ if self.settabindex:
+ attrs['tabindex'] = req.next_tabindex()
return tags.input(id=domid, name=domid, value=value,
type='text', size='5')