From 27cac3067a2df0def7fc9ea4b866e12f6fe2c7b6 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Wed, 19 Aug 2015 18:30:01 -0700 Subject: [PATCH] fix the code editor save and refresh actions --- public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js index 334c6254fb..685c5d8665 100644 --- a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js +++ b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js @@ -252,11 +252,11 @@ var allSeeds = ''; editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds; -editor.setValue(editorValue.replace(/\/gi, 'fccss').replace(/\<\/script\>/gi, 'fcces'); +editor.setValue(editorValue.replace((/fccss/gi), '')); editor.refresh(); var resetEditor = function resetEditor() { - editor.setValue(allSeeds); + editor.setValue(allSeeds.replace((/fccss/gi), '')); updatePreview(); codeStorage.updateStorage(); };