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) {
|
success: function(widgetData) {
|
||||||
// Remove spinner.
|
// Remove spinner.
|
||||||
removeSpinner(element);
|
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);
|
$("#widget-" + id + " .content-widget").append(widgetData);
|
||||||
|
|
||||||
$("#button-add-widget-" + id).click(function() {
|
$("#button-add-widget-" + id).click(function() {
|
||||||
|
|
Loading…
Reference in New Issue