changeset 0c00c0e8c80b in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=0c00c0e8c80b
description:
Fill buttons attribute with action, relate and print buttons
issue10410
(grafted from ebf162f8546abbbe6a243f7ec4db8a2df7182c98)
diffstat:
src/tab.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r bf4e530c1069 -r 0c00c0e8c80b src/tab.js
--- a/src/tab.js Thu Sep 02 23:17:33 2021 +0200
+++ b/src/tab.js Thu Sep 09 22:57:09 2021 +0200
@@ -513,7 +513,6 @@
create_toolbar: function() {
var toolbar = Sao.Tab.Form._super.create_toolbar.call(this);
var screen = this.screen;
- var buttons = this.buttons;
var prm = screen.model.execute('view_toolbar_get', [],
screen.context);
prm.done(function(toolbars) {
@@ -552,7 +551,7 @@
}))
.insertBefore(toolbar.find('button#email'));
var button = dropdown.find('button');
- buttons[menu_action[0]] = button;
+ this.buttons[menu_action[0]] = button;
dropdown
.on('show.bs.dropdown', function() {
jQuery(this).parents('.btn-group').removeClass(