From: Bernd Bleßmann Date: Fri, 13 Nov 2015 14:09:14 +0000 (+0100) Subject: Auftrags-Controller: Mehrfach-Artikelauswahl: Auf Enter reagieren und focus. X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c13a2652c90aa3b2282a8ee4dd24df88838ab43e;p=kivitendo-erp.git Auftrags-Controller: Mehrfach-Artikelauswahl: Auf Enter reagieren und focus. --- 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();