From b5f1ec5bca2eb20a2f66deaef70d41e26212cf82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 7 Aug 2014 12:11:09 +0200 Subject: [PATCH] =?utf8?q?PartPicker:=20Im=20Popup=20dem=20letzten=20Suchs?= =?utf8?q?tring=20=C3=BCbernehmen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/autocomplete_part.js | 4 +++- templates/webpages/part/part_picker_search.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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) %]
-- 2.20.1