mirror of https://github.com/OCA/web.git
[FIX] web_timeline: css and styles not charged when rendering timeline
On library version update a new feature was added at Timeline creation level to allow modifying the xss. By keeping it active the css classes are not showed As the view is on backend, has no sense to keep it active. So we deactivate the feature to allow show the timeline correctly. TT43238pull/3136/head
parent
274706887a
commit
e29c979629
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
"name": "Web timeline",
|
"name": "Web timeline",
|
||||||
"summary": "Interactive visualization chart to show events in time",
|
"summary": "Interactive visualization chart to show events in time",
|
||||||
"version": "16.0.1.0.0",
|
"version": "16.0.1.0.1",
|
||||||
"development_status": "Production/Stable",
|
"development_status": "Production/Stable",
|
||||||
"author": "ACSONE SA/NV, "
|
"author": "ACSONE SA/NV, "
|
||||||
"Tecnativa, "
|
"Tecnativa, "
|
||||||
|
|
|
@ -227,7 +227,11 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
|
||||||
this.qweb.add_template(tmpl);
|
this.qweb.add_template(tmpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.timeline = new vis.Timeline(this.$timeline.get(0));
|
this.timeline = new vis.Timeline(
|
||||||
|
this.$timeline.get(0),
|
||||||
|
{},
|
||||||
|
{xss: {disabled: true}}
|
||||||
|
);
|
||||||
this.timeline.setOptions(this.options);
|
this.timeline.setOptions(this.options);
|
||||||
if (this.mode && this["on_scale_" + this.mode + "_clicked"]) {
|
if (this.mode && this["on_scale_" + this.mode + "_clicked"]) {
|
||||||
this["on_scale_" + this.mode + "_clicked"]();
|
this["on_scale_" + this.mode + "_clicked"]();
|
||||||
|
|
Loading…
Reference in New Issue