diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-10 12:47:56 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-10 12:47:56 +0000 |
commit | eb841c5ef668a48782ef1154fda65cb6048f5885 (patch) | |
tree | 00dd0cb4313bf2291d94ed511fe51f0b4bc7ea7a /src/medsrv/templates/static/script.js | |
parent | 738206039047924ae7e4762a53d121be1ca43000 (diff) | |
download | vyos-strongswan-eb841c5ef668a48782ef1154fda65cb6048f5885.tar.gz vyos-strongswan-eb841c5ef668a48782ef1154fda65cb6048f5885.zip |
- Updated to new upstream.
Diffstat (limited to 'src/medsrv/templates/static/script.js')
-rw-r--r-- | src/medsrv/templates/static/script.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/medsrv/templates/static/script.js b/src/medsrv/templates/static/script.js new file mode 100644 index 000000000..f2ab1e009 --- /dev/null +++ b/src/medsrv/templates/static/script.js @@ -0,0 +1,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'); + } + })}); +}); + + |