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;
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;
}
}
+ 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;