From fc876a1da1f510feb6317bc1333008882ba53f70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 6 Feb 2017 15:30:26 +0100 Subject: [PATCH] kivi.Part.js: KEY konstanten aus Picker verschoben. die brauche ich gleich in mehreren Objekten. --- js/kivi.Part.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/js/kivi.Part.js b/js/kivi.Part.js index b6105406a..083e31e91 100644 --- a/js/kivi.Part.js +++ b/js/kivi.Part.js @@ -263,25 +263,26 @@ namespace('kivi.Part', function(ns) { $.post("controller.pl", { action: 'Part/warehouse_changed', warehouse_id: function(){ return $('#part_warehouse_id').val() } }, kivi.eval_json_result); } + var KEY = { + TAB: 9, + ENTER: 13, + SHIFT: 16, + CTRL: 17, + ALT: 18, + ESCAPE: 27, + PAGE_UP: 33, + PAGE_DOWN: 34, + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40, + }; + ns.Picker = function($real, options) { // short circuit in case someone double inits us if ($real.data("part_picker")) return $real.data("part_picker"); - var KEY = { - TAB: 9, - ENTER: 13, - SHIFT: 16, - CTRL: 17, - ALT: 18, - ESCAPE: 27, - PAGE_UP: 33, - PAGE_DOWN: 34, - LEFT: 37, - UP: 38, - RIGHT: 39, - DOWN: 40, - }; var CLASSES = { PICKED: 'partpicker-picked', UNDEFINED: 'partpicker-undefined', -- 2.20.1