Commits

Anonymous committed f343128

Fixed a problem where the wiki page editing <textarea/> would be only 1 line high.

Comments (0)

Files changed (1)

         self.req.hdf.setValue('wiki.namedoublequoted',
                               urllib.quote(urllib.quote(name, '')))
 
-        if save or preview:
-            session = Session(self.env, self.req)
-            editrows = self.args.get('editrows')
-            if editrows:
-                self.req.hdf.setValue('wiki.edit_rows', editrows)
-                pref = session.get('wiki_editrows', '20')
-                if editrows != pref:
-                    session.set_var('wiki_editrows', editrows)
-            else:
-                self.req.hdf.setValue('wiki.edit_rows',
-                                      session.get('wiki_editrows', '20'))
+        session = Session(self.env, self.req)
+        editrows = self.args.get('editrows')
+        if editrows:
+            self.req.hdf.setValue('wiki.edit_rows', editrows)
+            pref = session.get('wiki_editrows', '20')
+            if editrows != pref:
+                session.set_var('wiki_editrows', editrows)
+        else:
+            self.req.hdf.setValue('wiki.edit_rows',
+                                  session.get('wiki_editrows', '20'))
 
         if save:
             self.req.hdf.setValue('wiki.action', 'save')