summaryrefslogtreecommitdiff
path: root/web/public/js/taginfo.js
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-18 16:38:26 +0100
committerJochen Topf <jochen@topf.org>2013-01-18 16:38:26 +0100
commitcccd07319ce6979fc068ed55f9c4b778998b01aa (patch)
tree9b67b1c75b0340185b1475995fccc5187aeb7fff /web/public/js/taginfo.js
parent1c332107b2fc68f997cee654cfcf18604ab55c9b (diff)
downloadtaginfo-cccd07319ce6979fc068ed55f9c4b778998b01aa.tar
taginfo-cccd07319ce6979fc068ed55f9c4b778998b01aa.tar.gz
Add help dialog
Diffstat (limited to 'web/public/js/taginfo.js')
-rw-r--r--web/public/js/taginfo.js28
1 files changed, 25 insertions, 3 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index c4906d5..39ea6b0 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -527,11 +527,30 @@ function table_right() {
/* ============================ */
+function open_help() {
+ jQuery('#help').dialog({
+ modal: true,
+ resizable: false,
+ title: texts.misc.help,
+ minWidth: 800,
+ minHeight: 400,
+ position: { my: 'top', at: 'top+100' },
+ create: function(event, ui) {
+ jQuery('#help_tabs').tabs();
+ }
+ });
+ return false;
+}
+
+/* ============================ */
+
jQuery(document).ready(function() {
jQuery('#javascriptmsg').remove();
jQuery('select').customSelect();
+ jQuery('#help_link').bind('click', open_help);
+
jQuery.getQueryString = (function(a) {
if (a == "") return {};
var b = {};
@@ -570,14 +589,17 @@ jQuery(document).ready(function() {
});
jQuery(document).bind('keyup', function(event) {
+ if (event.ctrlKey || event.altKey || event.metaKey) {
+ return;
+ }
if (event.target == document.body) {
if (event.which >= 49 && event.which <= 57) { // digit
jQuery("#tabs").tabs("select", event.which - 49);
} else {
switch (event.which) {
- /* case 63: // ?
- window.location = '/help';
- break;*/
+ case 63: // ?
+ open_help();
+ break;
case 70: // f
jQuery('input.qsbox').focus();
break;