Revision 98fb2f04
Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt
js/kivi.Part.js | ||
---|---|---|
565 | 565 |
var self = this; |
566 | 566 |
kivi.popup_dialog({ |
567 | 567 |
url: 'controller.pl?action=Part/part_picker_search', |
568 |
data: self.pp.ajax_data(this.pp.$dummy.val()), |
|
568 |
data: $.extend({ |
|
569 |
real_id: self.pp.real_id, |
|
570 |
}, self.pp.ajax_data(this.pp.$dummy.val())), |
|
569 | 571 |
id: 'part_selection', |
570 | 572 |
dialog: { |
571 | 573 |
title: kivi.t8('Part picker'), |
templates/webpages/part/_part_picker_result.html | ||
---|---|---|
30 | 30 |
<div style='clear:both'></div> |
31 | 31 |
|
32 | 32 |
[% L.paginate_controls(target='#part_picker_result', selector='#part_picker_result', models=SELF.models) %] |
33 |
<script type='text/javascript'> |
|
34 |
$('#'+$('#part_picker_real_id').val()).data("part_picker").dialog.init_results(); |
|
35 |
</script> |
templates/webpages/part/part_picker_search.html | ||
---|---|---|
5 | 5 |
|
6 | 6 |
<div style='overflow:hidden'> |
7 | 7 |
|
8 |
[% L.hidden_tag('part_picker_real_id', FORM.real_id) %] |
|
8 | 9 |
[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', search_term, class='part_picker_filter') %] |
9 | 10 |
|
10 | 11 |
<div class='float-right'> |
Auch abrufbar als: Unified diff
PartPicker: Ergebnisse im Dialog nach Blättern initialisieren.
Sonst kann man nur auf der ersten Seite Ergebnisse auswählen.
Behebt #462 (redmine)