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

2006/unicorn/WebContent/scripts w3c_unicorn_index.js,1.12,1.13

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 01 Oct 2009 17:19:20 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MtPJI-0006M7-D4@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv24417/WebContent/scripts

Modified Files:
	w3c_unicorn_index.js 
Log Message:
fixed a bug when an ajax request is sent from /observe

Index: w3c_unicorn_index.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_index.js,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- w3c_unicorn_index.js	30 Sep 2009 16:29:17 -0000	1.12
+++ w3c_unicorn_index.js	1 Oct 2009 17:19:18 -0000	1.13
@@ -202,7 +202,7 @@
 	
 	requestOptions: function(taskIndex, withFX) {
 		
-		var req = new Request.HTML({url: window.location.pathname,
+		var req = new Request.HTML({url: window.location.pathname.replace(new RegExp('observe$'), ''),
 			method: 'get',
 			onRequest: function() {
 				W3C.Loader.injectBefore(W3C.Forms[W3C.SelectedTab].getElement('div.submit'));
Received on Thursday, 1 October 2009 17:19:21 UTC

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