Sonst kann man nur auf der ersten Seite Ergebnisse auswählen.
Behebt #462 (redmine)
var self = this;
kivi.popup_dialog({
url: 'controller.pl?action=Part/part_picker_search',
- data: self.pp.ajax_data(this.pp.$dummy.val()),
+ data: $.extend({
+ real_id: self.pp.real_id,
+ }, self.pp.ajax_data(this.pp.$dummy.val())),
id: 'part_selection',
dialog: {
title: kivi.t8('Part picker'),
<div style='clear:both'></div>
[% L.paginate_controls(target='#part_picker_result', selector='#part_picker_result', models=SELF.models) %]
+<script type='text/javascript'>
+ $('#'+$('#part_picker_real_id').val()).data("part_picker").dialog.init_results();
+</script>
<div style='overflow:hidden'>
+[% L.hidden_tag('part_picker_real_id', FORM.real_id) %]
[% LxERP.t8("Filter") %]: [% L.input_tag('part_picker_filter', search_term, class='part_picker_filter') %]
<div class='float-right'>