feature(config) add spinner before load

This commit is contained in:
coderaiser 2014-03-03 09:07:50 -05:00
parent a8cbe4b97f
commit 906c19a46a

View file

@ -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);
}
};