From e1f102be7f8cde60f85347ac79559625cc4a397b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 30 Jul 2012 06:19:31 -0400 Subject: [PATCH] minor changes --- lib/client/editor.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/client/editor.js b/lib/client/editor.js index bfad6262..5b84651b 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -105,9 +105,13 @@ CloudCommander.Editor.CodeMirror = { document.body.removeChild([0]); }; }), - getById: function(pId){return document.getElementById(pId);}, + getById : function(pId){return document.getElementById(pId);}, - getPanel: function(){ + getByClass : function(pClass){ + return document.getElementsByClassName(pClass); + }, + + getPanel : function(){ var lCurrent = document.getElementsByClassName('current-file'); lCurrent.length && (lCurrent = lCurrent[0].parentElement);