Revision b5f1ec5b
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
js/autocomplete_part.js | ||
---|---|---|
31 | 31 |
var state = STATES.PICKED; |
32 | 32 |
var last_real = $real.val(); |
33 | 33 |
var last_dummy = $dummy.val(); |
34 |
var last_unverified_dummy = $dummy.val(); |
|
34 | 35 |
var timer; |
35 | 36 |
|
36 | 37 |
function open_dialog () { |
... | ... | |
38 | 39 |
url: 'controller.pl?action=Part/part_picker_search', |
39 | 40 |
data: $.extend({ |
40 | 41 |
real_id: real_id, |
41 |
}, ajax_data($dummy.val())),
|
|
42 |
}, ajax_data(last_unverified_dummy)),
|
|
42 | 43 |
id: 'part_selection', |
43 | 44 |
dialog: { |
44 | 45 |
title: k.t8('Part picker'), |
... | ... | |
102 | 103 |
else if (state == STATES.UNDEFINED && $dummy.val() == '') |
103 | 104 |
set_item({}) |
104 | 105 |
else |
106 |
last_unverified_dummy = $dummy.val(); |
|
105 | 107 |
set_item({ id: last_real, name: last_dummy }) |
106 | 108 |
} |
107 | 109 |
|
templates/webpages/part/part_picker_search.html | ||
---|---|---|
5 | 5 |
|
6 | 6 |
<div style='overflow:hidden'> |
7 | 7 |
|
8 |
[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', SELF.filter.all_substr__ilike, class='part_picker_filter') %] |
|
8 |
[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', SELF.filter.all_substr_multi__ilike, class='part_picker_filter') %]
|
|
9 | 9 |
[% L.hidden_tag('part_picker_real_id', FORM.real_id) %] |
10 | 10 |
|
11 | 11 |
<div class='float-right'> |
Auch abrufbar als: Unified diff
PartPicker: Im Popup dem letzten Suchstring übernehmen