diff --git a/lib/client/editor.js b/lib/client/editor.js index 5d11fc76..3ee3fb2b 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -67,11 +67,12 @@ CloudCommander.Editor.CodeMirror = { var lLeft = this.getById('left'); var lCloudEditor = this.getById('CloudEditor'); + var lCURRENTFILE = CloudCommander.CURRENCURRENT_FILE; - var lCurrent = this.getById(CloudCommander.CURRENCURRENT_FILE); + var lCurrent = this.getByClassName(lCURRENTFILE); var lA; if(lCurrent.length) - lA = lCurrent.getElementsByTagName('a'); + lA = lCurrent[0].getElementsByTagName('a'); if(lA.length) lA = lA[0].href;