Increase display size only once per more row

This ensures that the growing rate between display size and rows is the same.

Closes #13972
(grafted from c8cfddd30e18453eea57dca6d80fcc7b992cb61e)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2025-04-14 09:52:31 +02:00
1 parent 2d27018972
commit b488c2f7bb
1 file changed
+2 -1
+2 -1
View File
@@ -763,7 +763,8 @@
'class': 'btn btn-default btn-block',
'type': 'button'
}).text(Sao.i18n.gettext('More')
).click(function() {
).one('click', function() {
this.tbody.find('tr.more-row').remove();
var height = this.table.height();
this.display_size += Sao.config.display_size;
this.display();