details: https://code.tryton.org/tryton/commit/e07927ab586e
branch: 8.0
user: Eva Luadora <[email protected]>
date: Wed Sep 02 13:57:21 2026 +0200
description:
Bind graph using the DOM element instead of id
Billboard must receive the graph element directly because the chart can
be
rendered while it is still detached from the document.
Closes #14970
(grafted from 00123388953eb5d0e7cee0ff3b8d005a826db9e9)
diffstat:
sao/src/view/graph.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 61dfbe6d9ef8 -r e07927ab586e sao/src/view/graph.js
--- a/sao/src/view/graph.js Mon Aug 24 11:56:05 2026 +0200
+++ b/sao/src/view/graph.js Wed Sep 02 13:57:21 2026 +0200
@@ -69,7 +69,6 @@
this.xfield = xfield;
this.yfields = yfields;
this.el = jQuery('<div/>');
- this.el.uniqueId();
},
update_data: function(group) {
var data = {};
@@ -171,7 +170,7 @@
_bb_config: function(data) {
var bb_config = {};
- bb_config.bindto = '#' + this.el.attr('id');
+ bb_config.bindto = this.el.get(0);
bb_config.data = data;
bb_config.data.type = this._chart_type;
bb_config.data.x = 'labels';