minor changes

This commit is contained in:
coderaiser 2012-07-30 05:35:45 -04:00
parent bda47450c3
commit 6392d4d978

View file

@ -15,7 +15,8 @@ CloudCommander.Editor.CodeMirror = {
var lFM = document.getElementById('fm');
if(lFM){
lFM.appendChild(lEditor);
lFM.appendChild(lEditor);
this.show();
}else console.log('Error. Something went wrong FM not found');
}
};
@ -57,10 +58,10 @@ CloudCommander.Editor.CodeMirror = {
CloudCommander.jsload('lib/client/editor/codemirror/pack/codemirror.pack.js', loadAll(this));
}),
show : (function(pParent){ /* function shows CodeMirror editor */
show : (function(){ /* function shows CodeMirror editor */
/* if CloudEditor is not loaded - loading him */
document.getElementById('CloudEditor') ||
this.load();
if(!document.getElementById('CloudEditor'))
return this.load();
/* removing keyBinding if set */
CloudCommander.keyBinded = false;
@ -80,7 +81,7 @@ CloudCommander.Editor.CodeMirror = {
lineWrapping: true,
extraKeys: {
//Сохранение
"Esc": pParent.hide(pParent)
"Esc": this.hide(this)
}
});