mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(config) add spinner before load
This commit is contained in:
parent
a8cbe4b97f
commit
906c19a46a
1 changed files with 12 additions and 8 deletions
|
|
@ -6,19 +6,23 @@ var CloudCmd, Util, DOM;
|
|||
CloudCmd.Config = ConfigProto;
|
||||
|
||||
function ConfigProto() {
|
||||
var Loading = true,
|
||||
Key = CloudCmd.Key,
|
||||
Images = DOM.Images,
|
||||
Events = DOM.Events,
|
||||
INPUT = 'INPUT',
|
||||
var Loading = true,
|
||||
Key = CloudCmd.Key,
|
||||
Images = DOM.Images,
|
||||
Events = DOM.Events,
|
||||
showLoad = Images.showLoad.bind(DOM, {
|
||||
top: true
|
||||
}),
|
||||
INPUT = 'INPUT',
|
||||
CONFIG,
|
||||
TEMPLATE,
|
||||
Notify = DOM.Notify,
|
||||
Config = this;
|
||||
Notify = DOM.Notify,
|
||||
Config = this;
|
||||
|
||||
function init(pCallBack) {
|
||||
Loading = true;
|
||||
|
||||
showLoad();
|
||||
Util.loadOnLoad([
|
||||
CloudCmd.View,
|
||||
function(callback) {
|
||||
|
|
@ -36,7 +40,7 @@ var CloudCmd, Util, DOM;
|
|||
];
|
||||
|
||||
if (!Loading) {
|
||||
Images.showLoad({top:true});
|
||||
showLoad();
|
||||
Util.asyncCall(funcs, fillTemplate);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue