From: Sven Schöling Date: Thu, 7 Aug 2014 10:11:09 +0000 (+0200) Subject: PartPicker: Im Popup dem letzten Suchstring übernehmen X-Git-Tag: release-3.2.0beta~359 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b5f1ec5bca2eb20a2f66deaef70d41e26212cf82;p=kivitendo-erp.git PartPicker: Im Popup dem letzten Suchstring übernehmen --- diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index d9bf8dbbb..fd1bda87c 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -31,6 +31,7 @@ namespace('kivi', function(k){ var state = STATES.PICKED; var last_real = $real.val(); var last_dummy = $dummy.val(); + var last_unverified_dummy = $dummy.val(); var timer; function open_dialog () { @@ -38,7 +39,7 @@ namespace('kivi', function(k){ url: 'controller.pl?action=Part/part_picker_search', data: $.extend({ real_id: real_id, - }, ajax_data($dummy.val())), + }, ajax_data(last_unverified_dummy)), id: 'part_selection', dialog: { title: k.t8('Part picker'), @@ -102,6 +103,7 @@ namespace('kivi', function(k){ else if (state == STATES.UNDEFINED && $dummy.val() == '') set_item({}) else + last_unverified_dummy = $dummy.val(); set_item({ id: last_real, name: last_dummy }) } diff --git a/templates/webpages/part/part_picker_search.html b/templates/webpages/part/part_picker_search.html index 96ddeb26f..4d625c7ae 100644 --- a/templates/webpages/part/part_picker_search.html +++ b/templates/webpages/part/part_picker_search.html @@ -5,7 +5,7 @@
-[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', SELF.filter.all_substr__ilike, class='part_picker_filter') %] +[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', SELF.filter.all_substr_multi__ilike, class='part_picker_filter') %] [% L.hidden_tag('part_picker_real_id', FORM.real_id) %]