diff options
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r-- | theme/list_lib.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 0d84516d2..4347475c6 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -1026,3 +1026,16 @@ function prevDetailedDive() showDiveDetails(--dive_id); } } + +function switchDives(e) +{ + if(document.getElementById("divePanel").style.display == 'block'){ + e = e || window.event; + if (e.keyCode == '37') { + prevDetailedDive(); + } + else if (e.keyCode == '39') { + nextDetailedDive(); + } + } +} |