validator/htdocs/scripts w3c-validator.js,1.4,1.5

Update of /sources/public/validator/htdocs/scripts
In directory hutz:/tmp/cvs-serv3233

Modified Files:
	w3c-validator.js 
Log Message:
Fixing a usability bug where options would be hidden from view, but still would be tabbed through 
when navigating with the keyboard.
Following ideas and suggestions by Greg Rosmaita, Gez Lemon, Patrick Lauke.
http://lists.w3.org/Archives/Public/wai-xtech/2007Aug/thread.html#msg76



Index: w3c-validator.js
===================================================================
RCS file: /sources/public/validator/htdocs/scripts/w3c-validator.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- w3c-validator.js	15 Jun 2007 15:47:23 -0000	1.4
+++ w3c-validator.js	24 Aug 2007 01:14:49 -0000	1.5
@@ -41,6 +41,9 @@
 				if (this.element.getStyle('margin-top').toInt() == 0){
 					this.wrapper.setStyle('height', 'auto');
 				}
+				else {
+				  this.element.setStyle('display','none');  // if a slideOut completed, set display:none
+				}
 			});
 		});
 		
@@ -54,6 +57,7 @@
 			var option = W3C.Options[i];
 			var link = legend.getFirst();
 			link.addEvent('click', function(event){
+			  option.setStyle('display', 'block'); // before any slide effect, set display:block
 				var block = (option.getStyle('margin-top').toInt() == 0);
 				W3C.setHash((block) ? pid : pid + opt);
 				new Event(event).stop();

Received on Friday, 24 August 2007 01:14:55 UTC