2006/unicorn/WebContent/scripts w3c_unicorn_results.js,1.10,1.11

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

Modified Files:
	w3c_unicorn_results.js 
Log Message:
new css sprite with rollovers for all fold/unfold icons on result page

Index: w3c_unicorn_results.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_results.js,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- w3c_unicorn_results.js	15 Sep 2009 16:00:12 -0000	1.10
+++ w3c_unicorn_results.js	25 Sep 2009 14:11:08 -0000	1.11
@@ -11,7 +11,13 @@
 		
 		$$('.title').each(function(title) {
 			title.addClass('pointer');
-			title.addClass('toggles');
+			var iconHolder = new Element('span', {class: 'arrow'});
+			var a;
+			if (title.getElement('span.icons') != null)
+				a = title.getElement('span.icons');
+			else
+				a = title.getElement('a.anchor');
+			iconHolder.inject(a, 'after');
 		});
 		
 		$$('.section').each(function(section) {

Received on Friday, 25 September 2009 14:11:28 UTC