details: https://code.tryton.org/tryton/commit/852530086b2d
branch: default
user: Cédric Krier <[email protected]>
date: Thu Apr 16 22:50:42 2026 +0200
description:
Wait for the next/previous display promises before clearing info and
set button sensitiveness
#14769
diffstat:
sao/src/tab.js | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (30 lines):
diff -r c91abeb5bcc1 -r 852530086b2d sao/src/tab.js
--- a/sao/src/tab.js Thu Apr 16 22:48:34 2026 +0200
+++ b/sao/src/tab.js Thu Apr 16 22:50:42 2026 +0200
@@ -1011,18 +1011,18 @@
},
previous: function() {
return this.modified_save().then(() => {
- var prm = this.screen.display_previous();
- this.info_bar.clear();
- this.set_buttons_sensitive();
- return prm;
+ return this.screen.display_previous().then(() => {
+ this.info_bar.clear();
+ this.set_buttons_sensitive();
+ });
});
},
next: function() {
return this.modified_save().then(() => {
- var prm = this.screen.display_next();
- this.info_bar.clear();
- this.set_buttons_sensitive();
- return prm;
+ return this.screen.display_next().then(() => {
+ this.info_bar.clear();
+ this.set_buttons_sensitive();
+ });
});
},
search: function() {