diff options
author | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2008-02-23 10:31:20 +0100 |
---|---|---|
committer | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2008-02-23 10:31:20 +0100 |
commit | 90dc9ca46d8cae9def26a0414311eab8c2549aa1 (patch) | |
tree | 3047de95a548291e64338c57a5834a830d7fd216 /webroot/.static/js/lxrng-funcs.js | |
parent | 5511fa1152f8a2e7a24ab7d3710174d14b4751a3 (diff) |
IE fixes.
Diffstat (limited to 'webroot/.static/js/lxrng-funcs.js')
-rw-r--r-- | webroot/.static/js/lxrng-funcs.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webroot/.static/js/lxrng-funcs.js b/webroot/.static/js/lxrng-funcs.js index 939eefd..c508dc9 100644 --- a/webroot/.static/js/lxrng-funcs.js +++ b/webroot/.static/js/lxrng-funcs.js @@ -314,7 +314,10 @@ function load_content() { } var tree = location.hash.split('/', 1); tree = tree[0].split(/[+]/); - var ver = tree[1] || ''; + var ver = ''; + if (tree.length > 1) { + ver = tree[1]; + } tree = tree[0].replace(/^#/, ''); var file = location.hash.replace(/^[^\/]*\/?/, ''); var line = file.replace(/.*\#L(\d+)/, '$1'); |