From 79a0dc82595f2cf2575f8238f60765173dbaff2c Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Thu, 20 Aug 2015 02:18:11 +0100 Subject: [PATCH] This should fix web storage script tag issues --- public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js index c3f44129e25..334c6254fb0 100644 --- a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js +++ b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js @@ -252,7 +252,7 @@ var allSeeds = ''; editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds; -editor.setValue(editorValue); +editor.setValue(editorValue.replace(/\/gi, 'fccss').replace(/\<\/script\>/gi, 'fcces'); editor.refresh(); var resetEditor = function resetEditor() { @@ -260,7 +260,7 @@ var resetEditor = function resetEditor() { updatePreview(); codeStorage.updateStorage(); }; - +/* var challengeSeed = challengeSeed || null; var allSeeds = ''; (function() { @@ -274,4 +274,4 @@ var allSeeds = ''; }, 200); })(); })(); - +*/