[Zope-Checkins] CVS: Zope/lib/python/Products/SiteAccess/www - manage_edit.dtml:1.2.16.1
Andreas Jung
andreas@andreas-jung.com
Sun, 6 Jul 2003 06:48:15 -0400
Update of /cvs-repository/Zope/lib/python/Products/SiteAccess/www
In directory cvs.zope.org:/tmp/cvs-serv8776/lib/python/Products/SiteAccess/www
Modified Files:
Tag: Zope-2_7-branch
manage_edit.dtml
Log Message:
- Collector #628: Applied patch to fix several textarea resize
problems.
=== Zope/lib/python/Products/SiteAccess/www/manage_edit.dtml 1.2 => 1.2.16.1 ===
--- Zope/lib/python/Products/SiteAccess/www/manage_edit.dtml:1.2 Sun Dec 22 12:54:04 2002
+++ Zope/lib/python/Products/SiteAccess/www/manage_edit.dtml Sun Jul 6 06:47:39 2003
@@ -28,10 +28,14 @@
(<strong>host/path</strong>),
or a set of hosts (<strong>*.host/path</strong>).
<div style="width: 100%;">
- <textarea name="map_text:text" wrap="off" style="width: 100%;"<dtml-if
- dtpref_cols> cols="&dtml-dtpref_cols;"<dtml-else
- > cols="50"</dtml-if><dtml-if dtpref_rows> rows="&dtml-dtpref_rows;"<dtml-else> rows="20"</dtml-if>><dtml-in
- lines>&dtml-sequence-item;
+ <dtml-let cols="REQUEST.get('dtpref_cols', '100%')"
+ rows="REQUEST.get('dtpref_rows', '20')">
+ <dtml-if "cols[-1]=='%'">
+ <textarea name="map_text:text" wrap="off" style="width: &dtml-cols;;"
+ <dtml-else>
+ <textarea name="map_text:text" wrap="off" cols="&dtml-cols;"
+ </dtml-if>
+ rows="&dtml-rows;"><dtml-in lines>&dtml-sequence-item;
</dtml-in></textarea>
</div>
</td>