diff --git a/config.json b/config.json index 5356b723..75bcf6c6 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "cache" : {"allowed" : false}, - "appcache" : true, + "appcache" : false, "minification" : { "js" : false, "css" : true, diff --git a/lib/client/terminal.js b/lib/client/terminal.js index 475664d1..09df8382 100644 --- a/lib/client/terminal.js +++ b/lib/client/terminal.js @@ -9,7 +9,6 @@ var CloudCommander, $; Util = cloudcmd.Util, KeyBinding = cloudcmd.KeyBinding, TerminalId, - Term, Hidden = false; cloudcmd.Terminal = {}; @@ -59,9 +58,12 @@ var CloudCommander, $; $(function($, undefined) { $('#terminal').terminal(function(command, term) { - Term = term; + JqueryTerminal.Term = term; term.echo(''); cloudcmd.Socket.send(command); + }, { + greetings: 'Javascript Interpreter', + prompt: 'cloudcmd>' }); }); }; @@ -98,8 +100,7 @@ var CloudCommander, $; else document.onkeypress = key_event; }); - - JqueryTerminal.Term = Term; + cloudcmd.Terminal.JqueryTerminal = JqueryTerminal; })(); \ No newline at end of file diff --git a/server.js b/server.js index 1e6e9443..4b29ba8c 100644 --- a/server.js +++ b/server.js @@ -678,7 +678,7 @@ CloudServer.indexReaded = function(pList){ '' + CloudFunc.setTitle() + ''); if(!CloudServer.Config.appcache) - pIndex = pIndex.replace('/cloudcmd.appcache', ''); + pIndex = pIndex.replace(' manifest="/cloudcmd.appcache"', ''); var lHeader; /* если браузер поддерживает gzip-сжатие*/