Beschleunigt das Nachladen der zweiten Zeile bei großen Aufträgen (100+
Zeilen), weil der client weit weniger DOM selectors auswerten muss.
(cherry picked from commit
87ca139b2162813d71dec8e4e8ecef21588c818d)
my $row_as_html = $self->p->render('order/tabs/_second_row', ITEM => $item, TYPE => $self->type);
$self->js
- ->html('.row_entry:has(#item_' . $item_id . ') [name = "second_row"]', $row_as_html)
- ->data('.row_entry:has(#item_' . $item_id . ') [name = "second_row"]', 'loaded', 1);
+ ->html('#second_row_' . $item_id, $row_as_html)
+ ->data('#second_row_' . $item_id, 'loaded', 1);
}
sub js_redisplay_line_values {
[%- PROCESS order/tabs/_second_row.html ITEM=ITEM TYPE=TYPE %]
</div>
[%- ELSE %]
- <div name="second_row">
+ <div name="second_row" id="second_row_[% ITEM.id %]">
[%- LxERP.t8("Loading...") %]
</div>
[%- END %]