From 3cacc231755cc70a315f217bdcc74dc99f24d8aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 3 Jul 2013 17:10:57 +0200 Subject: [PATCH] Verhalten bei nicht existenten Waren verbessert - tab aus dem element resettet auf letzten Stand - enter wird ignoriert, statt wie vorher das jqm aufzumachen --- js/autocomplete_part.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index db449e948..6be8bb18a 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -103,11 +103,14 @@ namespace('kivi', function(k){ set_item(data[0]); if (event.keyCode == 13) $('#update_button').click(); - } else { + } else if (data.length > 1) { if (event.keyCode == 13) open_dialog(); else make_defined_state(); + } else { + if (event.keyCode == 9) + make_defined_state(); } } }); -- 2.20.1