From 74aedb9668b09cf0626985b55bc85a3a756e0166 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 28 Jan 2012 16:42:32 +0000 Subject: [PATCH] Rename & active line Tab now renamed on saving file under new name Clear history moved to a repurposed contentCleanUp function in JS file Clear & set active line class to line 1 --- lib/file-control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index 4ba349a..758300e 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -103,6 +103,7 @@ if ($_GET['action']=="save") { // Reload file manager & stop CTRL+s being sticky echo ''; } + echo ''; echo ''; } else { echo ''; @@ -124,13 +125,14 @@ if (action=="load") { top.ICEcoder.switchMode(); cM = top.ICEcoder.getcMInstance(); cM.setValue(document.getElementById('loadedFile').value); - cM.clearHistory(); top.document.getElementById('content').style.visibility='visible'; top.ICEcoder.switchTab(top.ICEcoder.selectedTab); cM.focus(); // Then clean it up, set the text cursor, update the display and get the character data top.ICEcoder.contentCleanUp(); + top.ICEcoder.content.contentWindow['cM'+top.ICEcoder.selectedTab].setLineClass(top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab], null); + top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab] = top.ICEcoder.content.contentWindow['cM'+top.ICEcoder.selectedTab].setLineClass(0, "cm-s-activeLine"); } if (fileType=="image") {