mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
add parent element to console div
This commit is contained in:
parent
3f8aa846e8
commit
59acb899a2
1 changed files with 14 additions and 4 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue