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

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