refactored

This commit is contained in:
coderaiser 2012-09-21 06:11:05 -04:00
parent 94c94f2e4f
commit 73c468db51
3 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{
"cache" : {"allowed" : false},
"appcache" : true,
"appcache" : false,
"minification" : {
"js" : false,
"css" : true,

View file

@ -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;
})();

View file

@ -678,7 +678,7 @@ CloudServer.indexReaded = function(pList){
'<title>' + CloudFunc.setTitle() + '</title>');
if(!CloudServer.Config.appcache)
pIndex = pIndex.replace('/cloudcmd.appcache', '');
pIndex = pIndex.replace(' manifest="/cloudcmd.appcache"', '');
var lHeader;
/* если браузер поддерживает gzip-сжатие*/