mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
a57df4b527
commit
65f5a5030b
3 changed files with 10 additions and 9 deletions
|
|
@ -95,9 +95,9 @@ var CloudCommander, CloudFunc, CodeMirror;
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* function shows CodeMirror editor
|
||||
*/
|
||||
/**
|
||||
* function shows CodeMirror editor
|
||||
*/
|
||||
CodeMirrorEditor.show = function(pReadOnly){
|
||||
if( Util.isBoolean(pReadOnly) )
|
||||
ReadOnly = pReadOnly;
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ var CloudCommander, $;
|
|||
console.log('Error. Something went wrong FM not found');
|
||||
}
|
||||
|
||||
/* PUBLICK FUNCTIONS */
|
||||
/* PUBLIC FUNCTIONS */
|
||||
|
||||
/**
|
||||
* functin show jquery-terminal
|
||||
|
|
@ -113,9 +113,9 @@ var CloudCommander, $;
|
|||
/**
|
||||
* function bind keys
|
||||
*/
|
||||
cloudcmd.Terminal.Keys = (function(){
|
||||
cloudcmd.Terminal.Keys = function(){
|
||||
/* loading js and css*/
|
||||
Util.jqueryLoad(load);
|
||||
Util.jqueryLoad( load );
|
||||
|
||||
var key_event = function(event){
|
||||
/* если клавиши можно обрабатывать */
|
||||
|
|
@ -131,14 +131,14 @@ var CloudCommander, $;
|
|||
|
||||
|
||||
};
|
||||
|
||||
|
||||
/* добавляем обработчик клавишь */
|
||||
if (document.addEventListener)
|
||||
document.addEventListener('keydown', key_event, false);
|
||||
|
||||
|
||||
else
|
||||
document.onkeypress = key_event;
|
||||
});
|
||||
};
|
||||
|
||||
cloudcmd.Terminal.JqueryTerminal = JqueryTerminal;
|
||||
|
||||
|
|
|
|||
|
|
@ -706,6 +706,7 @@ CloudServer.indexReaded = function(pList){
|
|||
Zlib.gzip(pIndex,
|
||||
CloudServer.getGzipDataFunc(lHeader, CloudServer.INDEX));
|
||||
}
|
||||
|
||||
/* если не поддерживаеться - отсылаем данные без сжатия*/
|
||||
else
|
||||
CloudServer.sendResponse(lHeader, pIndex, CloudServer.INDEX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue