add parent element to console div

This commit is contained in:
coderaiaser 2013-06-14 04:50:37 -07:00
parent 3f8aa846e8
commit 59acb899a2

View file

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