From 09cf5589f53178f3e78ecf5f96fa14d3ffb3c295 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 3 Dec 2012 19:11:15 +0000 Subject: [PATCH] Use addLineClass and removeLineClass These are used in place of setLineClass now --- lib/file-control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/file-control.php b/lib/file-control.php index 7e03819..d308d37 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -240,8 +240,8 @@ if (action=="load") { // 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.cMInstances[top.ICEcoder.selectedTab-1]].setLineClass(top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab], null); - top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab] = top.ICEcoder.content.contentWindow['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].setLineClass(0, "cm-s-activeLine"); + top.ICEcoder.content.contentWindow['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].removeLineClass(top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab], "background"); + top.ICEcoder['cMActiveLine'+top.ICEcoder.selectedTab] = top.ICEcoder.content.contentWindow['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]].addLineClass(0, "background", "cm-s-activeLine"); top.ICEcoder.nextcMInstance++; top.ICEcoder.openFileMDTs.push(''); top.ICEcoder.loadingFile = false;