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

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 UTC