From 37927a9a1a2886d963981e3c38e610532c1a735d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 18 Mar 2016 02:52:47 -0400 Subject: [PATCH] fix reloading plugin pages --- dashboard-ui/components/viewcontainer-lite.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index 7e4506f40d..d497d61a71 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -102,8 +102,16 @@ define([], function () { } } + function replaceAll(str, find, replace) { + + return str.split(find).join(replace); + } + function parseHtml(html) { + html = replaceAll(html, '', ''); + var wrapper = document.createElement('div'); wrapper.innerHTML = html; return wrapper.querySelector('div[data-role="page"]');