Revision 78fdc155
Von Sven Schöling vor etwa 11 Jahren hinzugefügt
templates/webpages/ic/sales_price_information.html | ||
---|---|---|
20 | 20 |
get_report(target, event.target + '', {}); |
21 | 21 |
} |
22 | 22 |
|
23 |
$(document).ready(function(){ |
|
24 |
get_report('#sales_price_information_sales_order', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_order' }); |
|
25 |
get_report('#sales_price_information_sales_quotation', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_quotation' }); |
|
23 |
$('.tabwidget').on('tabsbeforeactivate', function(event, ui){ |
|
24 |
if (ui.newPanel.attr('id') == 'sales_price_information') { |
|
25 |
get_report('#sales_price_information_sales_order', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_order' }); |
|
26 |
get_report('#sales_price_information_sales_quotation', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_quotation' }); |
|
27 |
} |
|
28 |
return 1; |
|
26 | 29 |
}); |
27 | 30 |
|
28 | 31 |
|
Auch abrufbar als: Unified diff
Preisinformationen erst laden, wenn der Tab aktiv wird.
Reduziert den Request load weiter