- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 21 Aug 2009 11:28:22 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/scripts In directory hutz:/tmp/cvs-serv19968/WebContent/scripts Modified Files: Tag: dev2 w3c-validator.js Log Message: added ajax loader + added mime type selection for direct input Index: w3c-validator.js =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/scripts/Attic/w3c-validator.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -d -r1.1.2.5 -r1.1.2.6 --- w3c-validator.js 21 Aug 2009 10:06:36 -0000 1.1.2.5 +++ w3c-validator.js 21 Aug 2009 11:28:20 -0000 1.1.2.6 @@ -78,14 +78,13 @@ $$('span.task_description').each(function (span) { span.set('text', title); }); - event.stop(); var taskId = this.options[this.selectedIndex].value; var req = new Request.HTML({url: '/unicorn_dev/', method: 'get', onRequest: function() { $$('div.options_container').each(function (div) { - div.set('html', ''); + div.set('html', '<img src="images/ajax-loader.gif" style="margin: 1em 0;" />'); }); }, onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) { @@ -143,7 +142,6 @@ 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(); event.stop(); W3C.refreshOptionLinks(!block, i); }); @@ -155,7 +153,6 @@ W3C.OptionsFx.each(function (fx) { if (W3C.WithOptions) fx.show().fireEvent('onComplete'); else fx.hide(); - }); },
Received on Friday, 21 August 2009 11:28:32 UTC