minor changes

This commit is contained in:
coderaiser 2012-10-02 10:05:06 -04:00
parent 3b26faa3d2
commit 2b28a44fac
4 changed files with 38 additions and 20 deletions

View file

@ -151,12 +151,14 @@ var CloudCommander, CloudFunc, CodeMirror;
if(typeof data === 'object')
data = JSON.stringify(data, null, 4);
initCodeMirror(data);
var lHided = Util.hidePanel();
if(lHided){
initCodeMirror(data);
/* removing keyBinding if set */
KeyBinding.unSet();
}
/* removing keyBinding if set */
KeyBinding.unSet();
Util.hidePanel();
Util.Images.hideLoad();
Loading = false;

View file

@ -66,14 +66,16 @@ var CloudCommander, $;
JqueryTerminal.show = (function(){
Util.Images.hideLoad();
Hidden = false;
Util.hidePanel();
Util.show(TerminalId);
KeyBinding.unSet();
Term.resume();
Hidden = false;
/* only if panel was hided */
var lHided = Util.hidePanel();
if(lHided){
Util.show(TerminalId);
KeyBinding.unSet();
Term.resume();
}
});
JqueryTerminal.hide = (function(){