From 70b9094a3c82660912bf9de5911ebceaa05bb1d9 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Mon, 3 Jun 2013 20:57:21 +0200 Subject: Add a tooltip for the navigation hotkeys --- hyperkitty/static/css/hyperkitty-message.css | 2 +- hyperkitty/static/js/hyperkitty.js | 1 + 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 @@
Unreads: 0/{{unread_count}}   - Go to: next ↓ - - prev ↑ + Go to: next ↓ + - prev ↑
{% endif %} -- cgit