11943-Dashboards script tag as string
This commit is contained in:
parent
89b679c4a4
commit
208304ed80
|
@ -217,8 +217,12 @@ function initialiceLayout(data) {
|
|||
success: function(widgetData) {
|
||||
// Remove spinner.
|
||||
removeSpinner(element);
|
||||
|
||||
if (widgetData.includes('class="post-widget"')) {
|
||||
widgetData = widgetData.replace("<script", "<script");
|
||||
widgetData = widgetData.replace("</script", "</script");
|
||||
}
|
||||
|
||||
$("#widget-" + id + " .content-widget").append(widgetData);
|
||||
|
||||
$("#button-add-widget-" + id).click(function() {
|
||||
|
|
Loading…
Reference in New Issue