W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2009

2006/unicorn/resources/templates/index en_parameters.js.vm,1.4,1.5

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 28 Jul 2009 10:56:58 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MVkMc-0007OS-C4@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/resources/templates/index
In directory hutz:/tmp/cvs-serv28313/resources/templates/index

Modified Files:
	en_parameters.js.vm 
Log Message:
Modifying UNICORN_PARAMETER_PREFIX now works

Index: en_parameters.js.vm
===================================================================
RCS file: /sources/public/2006/unicorn/resources/templates/index/en_parameters.js.vm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- en_parameters.js.vm	19 Sep 2008 18:57:13 -0000	1.4
+++ en_parameters.js.vm	28 Jul 2009 10:56:56 -0000	1.5
@@ -76,7 +76,7 @@
 #end
 
 #macro(createMimes $task)
-	'<select name="ucn_text_mime">' +
+	'<select name="${param_prefix}text_mime">' +
 	#foreach($mime in $task.SupportedMimeTypes)  
 			'<option value="$mime">$mime</option>' +
 	#end
@@ -132,12 +132,12 @@
 
 	// mimetypes dropdown
 	if(method == 2) {
-		document.getElementById("ucn_text_mime").innerHTML = mimeContainer[value];
+		document.getElementById("${param_prefix}text_mime").innerHTML = mimeContainer[value];
 	}
 }
 
 function init() {
-  var tasklists = document.getElementsByName('ucn_task');
+  var tasklists = document.getElementsByName('${param_prefix}task');
   for(var i = 0; i < tasklists.length; i++) {
     taskChanged(tasklists[i].options[tasklists[i].options.selectedIndex].value, i);
   }
Received on Tuesday, 28 July 2009 10:57:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:09 GMT