mirror of https://github.com/OCA/web.git
[FIX] web_widget_bokeh_chart: Activate script and div at the same time
parent
23cec05e3c
commit
ccebbbef29
|
@ -20,7 +20,7 @@ const BokehChartWidget = basicFields.FieldChar.extend({
|
|||
script.setAttribute("type", "text/javascript");
|
||||
if ("textContent" in script) script.textContent = val.script;
|
||||
else script.text = val.script;
|
||||
$("head").append(script);
|
||||
this.$el.append(script);
|
||||
} catch (error) {
|
||||
return this._super(...arguments);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue