W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/WebContent/scripts w3c-validator.js,1.1.2.6,1.1.2.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 21 Aug 2009 15:03:18 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MeVeA-0005WH-SZ@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv21203/WebContent/scripts

Modified Files:
      Tag: dev2
	w3c-validator.js 
Log Message:
ajax request location not hard-coded anymore

Index: w3c-validator.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/Attic/w3c-validator.js,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- w3c-validator.js	21 Aug 2009 11:28:20 -0000	1.1.2.6
+++ w3c-validator.js	21 Aug 2009 15:03:16 -0000	1.1.2.7
@@ -80,7 +80,8 @@
 			});
 			event.stop();
 			var taskId = this.options[this.selectedIndex].value;
-			var req = new Request.HTML({url: '/unicorn_dev/',
+			
+			var req = new Request.HTML({url: window.location.pathname,
 				method: 'get',
 				onRequest: function() {
 					$$('div.options_container').each(function (div) {
Received on Friday, 21 August 2009 15:03:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC