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