[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/cluster form-macros



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic sourceware org	2006-12-22 17:18:42

Modified files:
	luci/cluster   : form-macros 

Log message:
	luci: cluster.conf editor: size textarea to fit content

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.137&r2=1.138

--- conga/luci/cluster/form-macros	2006/12/21 21:26:20	1.137
+++ conga/luci/cluster/form-macros	2006/12/22 17:18:42	1.138
@@ -3879,8 +3879,8 @@
 	      tal:define="ret python: here.process_cluster_conf_editor(request)">
 	  <span tal:content="structure python: ret['msg'].replace('\n', '<br/>')"/>
 	  <textarea name="new_cluster_conf"
-		          rows="80"
-		          tal:content="structure ret/cluster_conf"></textarea>
+		    tal:attributes="rows python: len(ret['cluster_conf'].splitlines()) + 8"
+		    tal:content="structure ret/cluster_conf"></textarea>
 	  <input tal:attributes="type  string:hidden;
 	                         name  string:pagetype;
 	                         value python:request['pagetype']"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]