mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
minor changes
This commit is contained in:
parent
e65ec7fb9f
commit
41481d6810
1 changed files with 7 additions and 10 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue