mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-08-15 23:08:44 +02:00
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);
|
||||
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