From c896ebb08707b3c55621c7039f6ff2ea42026d94 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 11 Mar 2016 18:35:05 +0000 Subject: [PATCH] Set savedContents also when loading --- lib/file-control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/file-control.php b/lib/file-control.php index e9323bc..17e9e75 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -175,6 +175,7 @@ if (action=="load") { cM = top.ICEcoder.getcMInstance(); cM.setValue(document.getElementById('loadedFile').value); top.ICEcoder.savedPoints[top.ICEcoder.selectedTab-1] = cM.changeGeneration(); + top.ICEcoder.savedContents[top.ICEcoder.selectedTab-1] = cM.getValue(); top.document.getElementById('content').style.visibility='visible'; top.ICEcoder.switchTab(top.ICEcoder.selectedTab,'noFocus'); setTimeout(function(){top.ICEcoder.filesFrame.contentWindow.focus();},0);