f2ab1e009937d4281db2ac4241a8d8a1f93019d3
[strongswan.git] / src / medsrv / templates / static / script.js
1 window.addEvent('domready', function() {
2 $$('.focus').each(function(e){e.focus();});
3 $$('table.list tr:nth-child(2n) td').each(function(e){e.set('class', 'even');});
4 $$('table.list tr:nth-child(2n+1) td').each(function(e){e.set('class', 'odd');});
5 $$('table.list tr th').each(function(e){e.set('class', 'head');});
6 $$('table.list tr td').each(function(e){e.addEvents({
7 'click': function(){
8 location.href = this.getChildren('a')[0].get('href');
9 }
10 })});
11 });
12
13