diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-01-12 10:57:24 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-01-12 10:57:24 +0100 |
commit | c8da52df68d737fde60b0efbdf7f18ec0030481d (patch) | |
tree | 5002167d53c2510cb4c2bf6231ab00408667442d | |
parent | c9a7f083b220f2702f5de26e2252a4f3f4e0e45b (diff) |
issue93, photo-index and reset-all via access key
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
-rw-r--r-- | phpfspot.js | 8 | ||||
-rw-r--r-- | themes/default/templates/index.tpl | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/phpfspot.js b/phpfspot.js index 4bd321f..abf9c43 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -442,6 +442,14 @@ function keyDown(e) { } return; } + if(key == 73 && evt.altKey && evt.ctrlKey) /* ctrl+alt+i */ { + showPhotoIndex(); + return; + } + if(key == 82 && evt.altKey && evt.ctrlKey) /* ctrl+alt+r */ { + resetAll(); + return; + } } } diff --git a/themes/default/templates/index.tpl b/themes/default/templates/index.tpl index 10459aa..be8ba6c 100644 --- a/themes/default/templates/index.tpl +++ b/themes/default/templates/index.tpl @@ -5,10 +5,10 @@ <div class="menu"> <div class="icons"> - <a href="javascript:showPhotoIndex();" onclick="click(this);" title="Show Photo Index"> + <a href="javascript:showPhotoIndex();" onclick="click(this);" title="Show Photo Index (CTRL+ALT+i)"> <img src="resources/photo_index.png" alt="photo index" /> </a> - <a href="javascript:resetAll();" onclick="click(this);" title="Reset selected-tags and search results"> + <a href="javascript:resetAll();" onclick="click(this);" title="Reset selected-tags and search results (CTRL+ALT+r)"> <img src="resources/reload.png" alt="reset tags" /> </a> <a href="javascript:showCredits();" onclick="click(this);" title="Show's a little credit page"> |