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 |
|
Auch abrufbar als: Unified diff
PartPicker: Im Popup dem letzten Suchstring übernehmen