minor changes

This commit is contained in:
coderaiser 2012-07-30 10:50:03 -04:00
parent e65ec7fb9f
commit 41481d6810

View file

@ -77,7 +77,7 @@ CloudCommander.Editor.CodeMirror = {
autofocus : true,
extraKeys: {
//Сохранение
"Esc": lParent.hide(this)
"Esc": lParent.hide(lParent)
}
});
};
@ -96,23 +96,20 @@ CloudCommander.Editor.CodeMirror = {
lA = lA[0].href;
/* reading data from current file */
var lValue = $.ajax({
$.ajax({
url:lA,
error: function(jqXHR, textStatus, errorThrown){
console.log(textStatus+' : '+errorThrown);
initCodeMirror_f('');
console.log(textStatus+' : '+errorThrown);
},
success:function(data, textStatus, jqXHR){
initCodeMirror_f(data);
lLeft &&
(lLeft.className = 'panel hidden');
}
});
if(lValue.responseText)
lValue = lValue.responseText;
lLeft &&
(lLeft.className = 'panel hidden');
});
}),
hide : (function(pParent) {
return function(){