mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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…
x
Reference in New Issue
Block a user