feature(config) add Loading

This commit is contained in:
coderaiser 2013-12-11 16:03:47 +00:00
parent d91a134a8d
commit 7e6bc4fb61

View file

@ -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) {