[widget] more wide textarea on bookmark edition stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 31 Mar 2010 14:27:02 +0200
branchstable
changeset 5111 9f3ea34f98d1
parent 5110 e1f0fb044d94
child 5112 5bf8baecfaf8
[widget] more wide textarea on bookmark edition
web/formwidgets.py
--- a/web/formwidgets.py	Wed Mar 31 13:35:44 2010 +0200
+++ b/web/formwidgets.py	Wed Mar 31 14:27:02 2010 +0200
@@ -783,6 +783,7 @@
             attrs['id'] = field.dom_id(form, 'fqs')
         if self.settabindex:
             attrs['tabindex'] = req.next_tabindex()
+        attrs.setdefault('cols', 60)
         attrs.setdefault('onkeyup', 'autogrow(this)')
         inputs += [tags.textarea(fqs, name=fqsqname, **attrs),
                    u'</td></tr></table>']