kivi.Part.js: KEY konstanten aus Picker verschoben.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 6 Feb 2017 14:30:26 +0000 (15:30 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 13 Feb 2017 15:32:44 +0000 (16:32 +0100)
die brauche ich gleich in mehreren Objekten.

js/kivi.Part.js

index b610540..083e31e 100644 (file)
@@ -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',