From c13a2652c90aa3b2282a8ee4dd24df88838ab43e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 13 Nov 2015 15:09:14 +0100 Subject: [PATCH] Auftrags-Controller: Mehrfach-Artikelauswahl: Auf Enter reagieren und focus. --- .../order/tabs/_multi_items_dialog.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/templates/webpages/order/tabs/_multi_items_dialog.html b/templates/webpages/order/tabs/_multi_items_dialog.html index 5ae114d41..cb1fc3ea8 100644 --- a/templates/webpages/order/tabs/_multi_items_dialog.html +++ b/templates/webpages/order/tabs/_multi_items_dialog.html @@ -31,6 +31,13 @@ function update_result() { method: 'post', success: function(data){ $('#multi_items_result').html(data); + $('#multi_items_result input').keydown(function(event) { + if(event.keyCode == 13) { + event.preventDefault(); + add_multi_items(); + return false; + } + }); } }); } @@ -42,6 +49,16 @@ function add_multi_items() { data += '&action=[%- FORM.callback %]'; $.post("controller.pl", data, kivi.eval_json_result); } + +$('#multi_items_filter_table input, #multi_items_filter_table select').keydown(function(event) { + if(event.keyCode == 13) { + event.preventDefault(); + update_result(); + return false; + } +}); + +$('#multi_items_filter_all_substr_multi_ilike').focus(); -- 2.20.1