W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2008

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

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 19 Sep 2008 18:57:15 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1KglAJ-0002qD-2g@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/resources/templates/index
In directory hutz:/tmp/cvs-serv10640/resources/templates/index

Modified Files:
	en_parameters.js.vm 
Log Message:
MimeTypes work again for DirectInput

Index: en_parameters.js.vm
===================================================================
RCS file: /sources/public/2006/unicorn/resources/templates/index/en_parameters.js.vm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- en_parameters.js.vm	4 Sep 2006 09:45:55 -0000	1.3
+++ en_parameters.js.vm	19 Sep 2008 18:57:13 -0000	1.4
@@ -76,17 +76,9 @@
 #end
 
 #macro(createMimes $task)
-	#set($alreadyPresent = [])
 	'<select name="ucn_text_mime">' +
-	#foreach($obs in $task.getMapOfObservation())  
-		#foreach($mime in $obs.getMapOfMimeTypePriority().keySet())
-			#set($sMime = $mime.toString())
-			#if(!$alreadyPresent.contains($sMime))
-				'<option value="$mime">$mime</option>' +
-				## if to avoid output print from add function call
-				#if($alreadyPresent.add($mime.toString())) #end
-			#end
-		#end
+	#foreach($mime in $task.SupportedMimeTypes)  
+			'<option value="$mime">$mime</option>' +
 	#end
 	'</select>'
 #end
Received on Friday, 19 September 2008 18:57:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:30 UTC