Revision fc876a1d
Von Sven Schöling vor fast 8 Jahren hinzugefügt
js/kivi.Part.js | ||
---|---|---|
263 | 263 |
$.post("controller.pl", { action: 'Part/warehouse_changed', warehouse_id: function(){ return $('#part_warehouse_id').val() } }, kivi.eval_json_result); |
264 | 264 |
} |
265 | 265 |
|
266 |
var KEY = { |
|
267 |
TAB: 9, |
|
268 |
ENTER: 13, |
|
269 |
SHIFT: 16, |
|
270 |
CTRL: 17, |
|
271 |
ALT: 18, |
|
272 |
ESCAPE: 27, |
|
273 |
PAGE_UP: 33, |
|
274 |
PAGE_DOWN: 34, |
|
275 |
LEFT: 37, |
|
276 |
UP: 38, |
|
277 |
RIGHT: 39, |
|
278 |
DOWN: 40, |
|
279 |
}; |
|
280 |
|
|
266 | 281 |
ns.Picker = function($real, options) { |
267 | 282 |
// short circuit in case someone double inits us |
268 | 283 |
if ($real.data("part_picker")) |
269 | 284 |
return $real.data("part_picker"); |
270 | 285 |
|
271 |
var KEY = { |
|
272 |
TAB: 9, |
|
273 |
ENTER: 13, |
|
274 |
SHIFT: 16, |
|
275 |
CTRL: 17, |
|
276 |
ALT: 18, |
|
277 |
ESCAPE: 27, |
|
278 |
PAGE_UP: 33, |
|
279 |
PAGE_DOWN: 34, |
|
280 |
LEFT: 37, |
|
281 |
UP: 38, |
|
282 |
RIGHT: 39, |
|
283 |
DOWN: 40, |
|
284 |
}; |
|
285 | 286 |
var CLASSES = { |
286 | 287 |
PICKED: 'partpicker-picked', |
287 | 288 |
UNDEFINED: 'partpicker-undefined', |
Auch abrufbar als: Unified diff
kivi.Part.js: KEY konstanten aus Picker verschoben.
die brauche ich gleich in mehreren Objekten.