summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-06-03 20:57:21 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-06-03 20:57:21 +0200
commit70b9094a3c82660912bf9de5911ebceaa05bb1d9 (patch)
tree3fd0e0dc6e5a50b0f0d12a99383e9711b73d4961
parentfcdaa7f3fd2b830ca566386a1711070407c7f191 (diff)
downloadhyperkitty-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.css2
-rw-r--r--hyperkitty/static/js/hyperkitty.js1
-rw-r--r--hyperkitty/templates/threads/right_col.html4
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}}
&nbsp;
- Go to: <a href="#" class="nextunread">next &darr;</a>
- - <a href="#" class="prevunread">prev &uarr;</a>
+ Go to: <a href="#" class="nextunread" title="hotkey: j">next &darr;</a>
+ - <a href="#" class="prevunread" title="hotkey: k">prev &uarr;</a>
</div>
</div>
{% endif %}