kivi.Part.js: Formatierung
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 6 Feb 2017 12:06:35 +0000 (13:06 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 13 Feb 2017 15:32:43 +0000 (16:32 +0100)
js/kivi.Part.js

index d4581ca..2882f6a 100644 (file)
@@ -292,9 +292,9 @@ namespace('kivi.Part', function(ns) {
       delay: 50,
       fat_set_item: $real.hasClass(CLASSES.FAT_SET_ITEM),
       action: {
-        on_enter_match_none:  function(){},
-        on_enter_match_one:   function(){$('#update_button').click();},
-        on_enter_match_many:  function(){open_dialog();}
+        on_enter_match_none: function(){ },
+        on_enter_match_one:  function(){ $('#update_button').click(); },
+        on_enter_match_many: function(){ open_dialog(); }
       }
     }, options);
     var STATES = {
@@ -360,8 +360,8 @@ namespace('kivi.Part', function(ns) {
         $real.val('');
         $dummy.val('');
       }
-      state = STATES.PICKED;
-      last_real = $real.val();
+      state      = STATES.PICKED;
+      last_real  = $real.val();
       last_dummy = $dummy.val();
       $real.trigger('change');
 
@@ -444,7 +444,7 @@ namespace('kivi.Part', function(ns) {
             if (callbacks && callbacks.match_many) callbacks.match_many(data);
           } else {
             state = STATES.UNDEFINED;
-            if (callbacks &&callbacks.match_none) callbacks.match_none();
+            if (callbacks && callbacks.match_none) callbacks.match_none();
           }
           annotate_state();
         }