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

2006/unicorn/WebContent/scripts w3c_unicorn_index.js,1.6,1.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 03 Sep 2009 14:04:14 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MjCv8-0006f5-9C@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv25473/WebContent/scripts

Modified Files:
	w3c_unicorn_index.js 
Log Message:
changing language does not loose the observation parameters

Index: w3c_unicorn_index.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_index.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- w3c_unicorn_index.js	1 Sep 2009 13:59:16 -0000	1.6
+++ w3c_unicorn_index.js	3 Sep 2009 14:04:12 -0000	1.7
@@ -75,6 +75,11 @@
 			}
 		});
 		
+		$$('ul#lang_choice').getElements('a').each(function (a) {
+			a.addEvent('click', function(event) {
+				this.setProperty('href', this.getProperty('href') +  window.location.hash);
+			});
+		});
 	},
 	
 	addOptionEvents: function () {
Received on Thursday, 3 September 2009 14:04:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:13 GMT