feature(config) fillTemplate: hideLoad -> onShow

This commit is contained in:
coderaiser 2014-03-26 05:59:49 -04:00
parent 740eabdd3a
commit d6d24a4a06

View file

@ -69,7 +69,11 @@ var CloudCmd, Util, DOM;
function fillTemplate() {
CloudCmd.getConfig(function(config) {
var i, n, div, data, inputs, input, inputFirst,
focus, obj;
focus, obj,
onShow = function() {
Images.hideLoad();
Util.exec(focus);
};
CONFIG = config;
obj = Util.copyObj(CONFIG);
@ -94,8 +98,7 @@ var CloudCmd, Util, DOM;
Events.addKey(key, input);
}
Images.hideLoad();
CloudCmd.View.show(div, focus, {
CloudCmd.View.show(div, onShow, {
autoSize: true
});
});