From d42afc8f10e374fca6fcbd2c8a2f2f6cb31b2304 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Wed, 19 Aug 2015 22:31:18 +0100 Subject: [PATCH] Fixed local storage for HCJQ framework challenges --- public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js index 6b004bafe6..4726dc2192 100644 --- a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js +++ b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js @@ -253,13 +253,14 @@ var allSeeds = ''; editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds; editor.setValue(editorValue); +editor.refresh(); var resetEditor = function resetEditor() { editor.setValue(allSeeds); updatePreview(); codeStorage.updateStorage(); }; - +/* var challengeSeed = challengeSeed || null; var allSeeds = ''; (function() { @@ -273,3 +274,4 @@ var allSeeds = ''; }, 200); })(); })(); +*/