- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 25 Aug 2009 09:20:16 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/scripts In directory hutz:/tmp/cvs-serv14249/WebContent/scripts Modified Files: Tag: dev2 w3c-validator.js Log Message: now set disabled="disabled" on unrelated task options each option input (inout, select, textarea, ...) must have class="option_input" Index: w3c-validator.js =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/scripts/Attic/w3c-validator.js,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -d -r1.1.2.9 -r1.1.2.10 --- w3c-validator.js 24 Aug 2009 09:17:48 -0000 1.1.2.9 +++ w3c-validator.js 25 Aug 2009 09:20:14 -0000 1.1.2.10 @@ -118,16 +118,21 @@ input.value = taskId; }); - var foundOptions = false; - var options = $$('fieldset.options'); options.setStyle('display', 'none'); + options.getElements('.option_input').each(function (input) { + input.setProperty('disabled', 'disabled'); + }); + var currentOptions = options.filter('fieldset.' + taskId); if (!currentOptions.length > 0) W3C.requestOptions(taskIndex, withFX); else { + currentOptions.getElements('.option_input').each(function (input) { + input.removeProperty('disabled'); + }); currentOptions.setStyle('opacity', 0); currentOptions.setStyle('display', 'block'); if (withFX) {
Received on Tuesday, 25 August 2009 09:20:27 UTC