From b488c2f7bb32755fece7722f8b5afe349c48a168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 14 Apr 2025 09:52:31 +0200 Subject: [PATCH] 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 --- sao/src/view/tree.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index 2968065d24..eec1447ab8 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -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();