From c481dcabfcbd647f07c8f364d739e2be8c3c59e1 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Wed, 26 Aug 2015 20:31:31 +0100 Subject: [PATCH] Touched up frame work --- public/js/lib/coursewares/commonFrameWork_0.0.4.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/lib/coursewares/commonFrameWork_0.0.4.js b/public/js/lib/coursewares/commonFrameWork_0.0.4.js index d6c1d95d93..429effe7a6 100644 --- a/public/js/lib/coursewares/commonFrameWork_0.0.4.js +++ b/public/js/lib/coursewares/commonFrameWork_0.0.4.js @@ -576,11 +576,11 @@ $(document).ready(function(){ isInitRun = true; editorValue = (codeStorage.isAlive())? codeStorage.getEditorValue() : allSeeds; myCodeMirror.setValue(editorValue.replace(/fccss/gi, '")); - if(typeof $preview.html() !== 'undefined') { + if(typeof $preview.html() !== 'undefined' && isInitRun) { $preview.load(function(){ - bonfireExecute(false); + bonfireExecute(true); }); } else{ - bonfireExecute(false); + bonfireExecute(true); } });