mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(config) add Loading
This commit is contained in:
parent
d91a134a8d
commit
7e6bc4fb61
1 changed files with 9 additions and 3 deletions
|
|
@ -5,7 +5,8 @@ var CloudCmd, Util, DOM;
|
|||
CloudCmd.Config = ConfigProto;
|
||||
|
||||
function ConfigProto() {
|
||||
var Key = CloudCmd.Key,
|
||||
var Loading = true,
|
||||
Key = CloudCmd.Key,
|
||||
Images = DOM.Images,
|
||||
Events = DOM.Events,
|
||||
INPUT = 'INPUT',
|
||||
|
|
@ -17,6 +18,9 @@ var CloudCmd, Util, DOM;
|
|||
function init(pCallBack) {
|
||||
Util.loadOnLoad([
|
||||
Config.show,
|
||||
function() {
|
||||
Loading = false;
|
||||
},
|
||||
CloudCmd.View,
|
||||
]);
|
||||
|
||||
|
|
@ -30,8 +34,10 @@ var CloudCmd, Util, DOM;
|
|||
cssLoad
|
||||
];
|
||||
|
||||
Images.showLoad({top:true});
|
||||
Util.asyncCall(funcs, fillTemplate);
|
||||
if (!Loading) {
|
||||
Images.showLoad({top:true});
|
||||
Util.asyncCall(funcs, fillTemplate);
|
||||
}
|
||||
};
|
||||
|
||||
function cssLoad(callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue