Project

General

Profile

0001-Part-Picker-Dialog-Fix-Ergebnisse-auf-weiteren-Seite.patch

Bernd BleƟmann, 01/15/2021 05:04 PM

View differences:

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
  kivi.Part.Picker($('#'+$('#part_picker_real_id').val())).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'>
11
-