2006/unicorn/WebContent/scripts w3c_unicorn_index.js,1.4,1.5

Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv18414/WebContent/scripts

Modified Files:
	w3c_unicorn_index.js 
Log Message:
added languages merging
+ messages on index

Index: w3c_unicorn_index.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_index.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- w3c_unicorn_index.js	31 Aug 2009 15:30:05 -0000	1.4
+++ w3c_unicorn_index.js	1 Sep 2009 13:39:41 -0000	1.5
@@ -30,12 +30,12 @@
 		W3C.toggleOptions(false);
 		W3C.addOptionEvents();
 		
-		console.log(W3C.isUrl("http://www.w3.org"));
+		/*console.log(W3C.isUrl("http://www.w3.org"));
 		console.log(W3C.isUrl("http://jigsaw.w3.org/css-validator/validator?uri=www.w3.org&profile=css3&usermedium=all&warning=1&lang=fr&output=ucn"));
 		console.log(W3C.isUrl("http://localhost:8080/unicorn_dev/#validate-by-uri+task_full-css+with_options"));
 		console.log(W3C.isUrl("http://www.%w3.org/TR/CSS21/colors.html#propdef-color"));
 		console.log(W3C.isUrl("/w3.org"));
-		console.log(W3C.isUrl("www.w3.org"));
+		console.log(W3C.isUrl("www.w3.org"));*/
 	},
 	
 	prepareDocument: function(){
@@ -64,13 +64,21 @@
 			W3C.TaskDescrip.set('text', W3C.TaskOptions[W3C.SelectedTask].title);
 		});
 		
-		$$('div.error pre').slide('hide');
+		$$('div#messages pre').slide('hide');
 		
-		$$('div.error').each(function(error) {
-			error.addClass('pointer');
-			error.addEvent('click', function(event) {
-				error.getElement('pre').slide('toggle');
-			});
+		$$('div#messages div').each(function(message) {
+			//if (message.getElement('pre')) {
+			if (message.getElement('pre')) {
+				console.log(message);
+				console.log(message.getElement('pre'));
+				message.addClass('pointer');
+				message.addEvent('click', function(event) {
+					console.log("Mess: " + message);
+					console.log("Pre: " + message.getElement('pre'));
+					message.getElement('pre').slide('toggle');
+					
+				});
+			}
 		});
 		
 	},

Received on Tuesday, 1 September 2009 13:39:53 UTC