From 59acb899a284ea204cbf832e9e2ac65c577aef76 Mon Sep 17 00:00:00 2001 From: coderaiaser Date: Fri, 14 Jun 2013 04:50:37 -0700 Subject: [PATCH] add parent element to console div --- lib/client/console.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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); };