diff --git a/js/modules/Dashboard/Dashboard.js b/js/modules/Dashboard/Dashboard.js index 40242e6e8ff..fb96edf1e4b 100644 --- a/js/modules/Dashboard/Dashboard.js +++ b/js/modules/Dashboard/Dashboard.js @@ -104,7 +104,7 @@ class GLPIDashboard { this.filters_selector = ""; GridStack.renderCB = (el, w) => { - el.innerHTML = w.content; + el.parentElement.innerHTML = w.content; }; // get passed options and merge it with default ones @@ -628,16 +628,13 @@ class GLPIDashboard { const height = parseInt(p.height || 2); const options = p.card_options || {}; - const html = ' \ -
\ - \ - \ - \ - \ - \ -
\ -
\ -
'; + const html = ` + + + + + +
`; // add the widget to the grid const widget = this.grid.addWidget({