mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(edit) showMessage
This commit is contained in:
parent
2cf8db4018
commit
f3ec6246c8
1 changed files with 2 additions and 4 deletions
|
|
@ -462,8 +462,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
}
|
||||
|
||||
this.showMessage = function(text) {
|
||||
var parent,
|
||||
HIDE_TIME = 2000;
|
||||
var HIDE_TIME = 2000;
|
||||
|
||||
if (Msg) {
|
||||
Msg.innerHTML = text;
|
||||
|
|
@ -482,12 +481,11 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
'transition' + ': ease 0.5s;' +
|
||||
'}'
|
||||
});
|
||||
parent = Element;
|
||||
|
||||
Msg = DOM.load({
|
||||
name : 'div',
|
||||
className : 'msg',
|
||||
parent : parent,
|
||||
parent : Element,
|
||||
inner : text
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue