X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/112eb7bb8f673c6e9ecd955634e0c392c054a9c0..339f80aa723d584e29fe42f5307d435d5c6a8cc8:/js/kivi.ActionBar.js diff --git a/js/kivi.ActionBar.js b/js/kivi.ActionBar.js index e85fbe45f..597b48528 100644 --- a/js/kivi.ActionBar.js +++ b/js/kivi.ActionBar.js @@ -41,7 +41,8 @@ namespace('kivi', function(k){ target = 'document'; } - var normalized = $.map(keystring.split('+'), function(val, i) { + var normalized = $.map(String.prototype.split.call(keystring, '+'), function(val, i) { + console.log(keystring) switch (val) { case 'ctrl': case 'alt': return val; @@ -49,18 +50,14 @@ namespace('kivi', function(k){ default: if (val.length == 1) { return val.charChodeAt(0) - } else if (typeof val === 'number') { - return val } else if (val % 1 === 0) { - return val % 1; + return val; } else { console.log('can not normalize access key token: ' + val); } } }).join('+'); - console.log(normalized) - if (!(target in this.actions)) this.actions[target] = {}; this.actions[target][normalized] = action; @@ -117,6 +114,10 @@ namespace('kivi', function(k){ } } + if (data.tooltip) { + $(e).tooltipster({ content: data.tooltip, theme: 'tooltipster-light' }); + } + if (data.call || data.submit) { $(e).click(function(event) { var $hidden, key, func, check;