diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-09 21:02:41 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2008-07-09 21:02:41 +0000 |
commit | db67c87db3c9089ea8d2e14f617bf3d9e2af261f (patch) | |
tree | 665c0caea83d34c11c1517c4c57137bb58cba6fb /src/medsrv/templates/static/script.js | |
parent | 1c088a8b6237ec67f63c23f97a0f2dc4e99af869 (diff) | |
download | vyos-strongswan-db67c87db3c9089ea8d2e14f617bf3d9e2af261f.tar.gz vyos-strongswan-db67c87db3c9089ea8d2e14f617bf3d9e2af261f.zip |
[svn-upgrade] Integrating new upstream version, strongswan (4.2.4)
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'); + } + })}); +}); + + |