From: Sven Schöling Date: Mon, 6 Feb 2017 14:30:26 +0000 (+0100) Subject: kivi.Part.js: KEY konstanten aus Picker verschoben. X-Git-Tag: release-3.5.4~1463 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fc876a1da1f510feb6317bc1333008882ba53f70;p=kivitendo-erp.git kivi.Part.js: KEY konstanten aus Picker verschoben. die brauche ich gleich in mehreren Objekten. --- 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',