diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-06-03 20:57:21 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-06-03 20:57:21 +0200 |
commit | 70b9094a3c82660912bf9de5911ebceaa05bb1d9 (patch) | |
tree | 3fd0e0dc6e5a50b0f0d12a99383e9711b73d4961 | |
parent | fcdaa7f3fd2b830ca566386a1711070407c7f191 (diff) | |
download | hyperkitty-70b9094a3c82660912bf9de5911ebceaa05bb1d9.tar.gz hyperkitty-70b9094a3c82660912bf9de5911ebceaa05bb1d9.tar.xz hyperkitty-70b9094a3c82660912bf9de5911ebceaa05bb1d9.zip |
Add a tooltip for the navigation hotkeys
-rw-r--r-- | hyperkitty/static/css/hyperkitty-message.css | 2 | ||||
-rw-r--r-- | hyperkitty/static/js/hyperkitty.js | 1 | ||||
-rw-r--r-- | hyperkitty/templates/threads/right_col.html | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/hyperkitty/static/css/hyperkitty-message.css b/hyperkitty/static/css/hyperkitty-message.css index 3525aed..a960853 100644 --- a/hyperkitty/static/css/hyperkitty-message.css +++ b/hyperkitty/static/css/hyperkitty-message.css @@ -281,7 +281,7 @@ padding-right: 2em; display: none; } -#unreadnavbar div { +#unreadnavbar>div { width: auto; padding: 0.2em 1em; border: 1px solid #888; diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js index e43f766..3d695b9 100644 --- a/hyperkitty/static/js/hyperkitty.js +++ b/hyperkitty/static/js/hyperkitty.js @@ -290,6 +290,7 @@ function setup_unreadnavbar(element) { element.find(".prevunread").click(function(e) { e.preventDefault(); scroll(-1); }); $(document).bind("keydown", "j", function(e) { scroll(1); }); $(document).bind("keydown", "k", function(e) { scroll(-1); }); + element.find("a").tooltip(); element.animate({height: "show"}, 700); } diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html index 5011993..76ed853 100644 --- a/hyperkitty/templates/threads/right_col.html +++ b/hyperkitty/templates/threads/right_col.html @@ -66,8 +66,8 @@ <div> Unreads: <span class="unreadindex">0</span>/{{unread_count}} - Go to: <a href="#" class="nextunread">next ↓</a> - - <a href="#" class="prevunread">prev ↑</a> + Go to: <a href="#" class="nextunread" title="hotkey: j">next ↓</a> + - <a href="#" class="prevunread" title="hotkey: k">prev ↑</a> </div> </div> {% endif %} |