Merge branch 'ent-11943-dashboards-reemplaza-etiqueta-script-por-string' into 'develop'
Ent 11943 dashboards reemplaza etiqueta script por string See merge request artica/pandorafms!6355
This commit is contained in:
commit
699b170338
|
@ -217,8 +217,12 @@ function initialiceLayout(data) {
|
|||
success: function(widgetData) {
|
||||
// Remove spinner.
|
||||
removeSpinner(element);
|
||||
widgetData = widgetData.replace("<script", "<script");
|
||||
widgetData = widgetData.replace("</script", "</script");
|
||||
|
||||
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