From 35f69d09ea9ce2cd46aad041990d5066d9bb7468 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 18 Mar 2016 12:23:55 -0400 Subject: [PATCH] fix plugin page refresh --- dashboard-ui/components/viewcontainer-lite.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index d497d61a71..431bf3ec78 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -107,10 +107,12 @@ define([], function () { return str.split(find).join(replace); } - function parseHtml(html) { + function parseHtml(html, hasScript) { - html = replaceAll(html, '', ''); + if (hasScript) { + html = replaceAll(html, '', ''); + } var wrapper = document.createElement('div'); wrapper.innerHTML = html; @@ -126,13 +128,15 @@ define([], function () { return html; } - var elem = parseHtml(options.view); + var hasScript = options.view.indexOf('