Revision 87e1fb0d
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
js/kivi.ActionBar.js | ||
---|---|---|
55 | 55 |
case 'enter': return 13; |
56 | 56 |
default: |
57 | 57 |
if (val.length == 1) { |
58 |
return val.charChodeAt(0) |
|
58 |
return val.charChodeAt(0);
|
|
59 | 59 |
} else if (val % 1 === 0) { |
60 | 60 |
return val; |
61 | 61 |
} else { |
... | ... | |
147 | 147 |
if (data.confirm && !confirm(data.confirm)) return; |
148 | 148 |
if (data.call) { |
149 | 149 |
func = kivi.get_function_by_name(data.call[0]); |
150 |
func.apply(document, data.call.slice(1)) |
|
150 |
func.apply(document, data.call.slice(1));
|
|
151 | 151 |
} |
152 | 152 |
if (data.submit) { |
153 | 153 |
var form = data.submit[0]; |
154 | 154 |
var params = data.submit[1]; |
155 | 155 |
for (key in params) { |
156 |
$hidden = $('<input type=hidden>') |
|
157 |
$hidden.attr('name', key) |
|
158 |
$hidden.attr('value', params[key]) |
|
159 |
$(form).append($hidden) |
|
156 |
$hidden = $('<input type=hidden>');
|
|
157 |
$hidden.attr('name', key);
|
|
158 |
$hidden.attr('value', params[key]);
|
|
159 |
$(form).append($hidden);
|
|
160 | 160 |
} |
161 | 161 |
$(form).submit(); |
162 | 162 |
} |
Auch abrufbar als: Unified diff
ActionBar: JS: fehlende ; am Zeilenende ergänzt