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