Updated text areas CSS class
authorThierry Florac <thierry.florac@onf.fr>
Thu, 12 Jul 2018 18:19:50 +0200
changeset 79 08535535b5ed
parent 78 8bab1101f4ef
child 80 601d0dd8bbde
Updated text areas CSS class
src/pyams_thesaurus/zmi/extract.py
--- a/src/pyams_thesaurus/zmi/extract.py	Wed Jul 11 15:56:29 2018 +0200
+++ b/src/pyams_thesaurus/zmi/extract.py	Thu Jul 12 18:19:50 2018 +0200
@@ -157,8 +157,6 @@
 
     def updateWidgets(self, prefix=None):
         super(ThesaurusExtractAddForm, self).updateWidgets()
-        if 'description' in self.widgets:
-            self.widgets['description'].widget_css_class = 'textarea'
         if 'color' in self.widgets:
             widget = self.widgets['color']
             alsoProvides(widget, IObjectData)
@@ -206,8 +204,6 @@
         super(ThesaurusExtractEditForm, self).updateWidgets(prefix)
         if 'name' in self.widgets:
             self.widgets['name'].mode = DISPLAY_MODE
-        if 'description' in self.widgets:
-            self.widgets['description'].widget_css_class = 'textarea'
         if 'color' in self.widgets:
             widget = self.widgets['color']
             alsoProvides(widget, IObjectData)