summaryrefslogtreecommitdiff
path: root/src/medsrv/templates/static/script.js
blob: f2ab1e009937d4281db2ac4241a8d8a1f93019d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
window.addEvent('domready', function() {
	$$('.focus').each(function(e){e.focus();});
	$$('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');
		}
	})});
});