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

2006/unicorn/WebContent/scripts w3c_unicorn_results.js,1.13,1.14

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 30 Sep 2009 17:00:29 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mt2XV-0005Pk-4I@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv20798/WebContent/scripts

Modified Files:
	w3c_unicorn_results.js 
Log Message:
fold long messages the same way it is done on index

Index: w3c_unicorn_results.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_results.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- w3c_unicorn_results.js	30 Sep 2009 16:29:17 -0000	1.13
+++ w3c_unicorn_results.js	30 Sep 2009 17:00:27 -0000	1.14
@@ -49,9 +49,6 @@
 				W3C.close(observer, false);
 			observer.getElement('a.anchor').addEvent('click', function(event) {
 				W3C.open(observer, true);
-				/*(new Chain()).wait(slideDuration).chain(function() {
-					W3C.setHash(observer.getProperty('id'));
-				}).callChain();*/
 			});
 			if (observer.getElement('a.infos')) {
 				observer.getElement('a.infos').addEvent('click', function(event) {
@@ -79,8 +76,15 @@
 			}
 		});
 		
-		$('banner').addEvent('click', function() {
-			W3C.closeAllObserversBut(W3C.Observers[0], true);
+		$$('div#messages pre').slide('hide');
+		
+		$$('div#messages > div').each(function(message) {
+			if (message.getElement('pre')) {
+				message.addClass('pointer');
+				message.addEvent('click', function(event) {
+					message.getElement('pre').slide('toggle');
+				});
+			}
 		});
 		
 		var mySmoothScroll = new Fx.SmoothScroll({
Received on Wednesday, 30 September 2009 17:00:30 GMT

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