diff --git a/lib/client/editor/_codemirror.js b/lib/client/editor/_codemirror.js index 23ecc1c0..7dccd8d2 100644 --- a/lib/client/editor/_codemirror.js +++ b/lib/client/editor/_codemirror.js @@ -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; diff --git a/lib/client/terminal.js b/lib/client/terminal.js index d0fa43b9..2c4c2e5f 100644 --- a/lib/client/terminal.js +++ b/lib/client/terminal.js @@ -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; diff --git a/server.js b/server.js index 472bbdea..f62cd4ac 100644 --- a/server.js +++ b/server.js @@ -706,6 +706,7 @@ CloudServer.indexReaded = function(pList){ Zlib.gzip(pIndex, CloudServer.getGzipDataFunc(lHeader, CloudServer.INDEX)); } + /* если не поддерживаеться - отсылаем данные без сжатия*/ else CloudServer.sendResponse(lHeader, pIndex, CloudServer.INDEX);