diff --git a/lib/client/console.js b/lib/client/console.js index 45d48161..723f31b1 100644 --- a/lib/client/console.js +++ b/lib/client/console.js @@ -25,14 +25,24 @@ var CloudCmd, Util, DOM, $; }; this.show = function(){ - var lElement; + var lElement, lViewElement; Images.showLoad({top:true}); - lElement = DOM.anyload({ + lViewElement = DOM.anyload({ + name : 'div', + id : 'view', + attribute : { + tabindex : 0 + }, + not_append : true + }), + + lElement = DOM.anyload({ name : 'div', className : 'console', - }); + parent : lViewElement + }), $(lElement).console({ promptLabel: '# ', @@ -49,7 +59,7 @@ var CloudCmd, Util, DOM, $; promptHistory : true, }); - CloudCmd.View.show(lElement); + CloudCmd.View.show(lViewElement); };