[Zope-Checkins] CVS: Zope/lib/python/Products/SiteAccess/www - manage_edit.dtml:1.3
Andreas Jung
andreas@andreas-jung.com
Sun, 6 Jul 2003 06:44:44 -0400
Update of /cvs-repository/Zope/lib/python/Products/SiteAccess/www
In directory cvs.zope.org:/tmp/cvs-serv8091/lib/python/Products/SiteAccess/www
Modified Files:
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.3 ===
--- 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:44:09 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>