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

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