mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-22 15:39:34 +00:00
refactor(config) fillTemplate
This commit is contained in:
parent
e0d8345760
commit
66faa8639e
1 changed files with 2 additions and 6 deletions
|
|
@ -58,9 +58,10 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
function fillTemplate() {
|
||||
Util.ifExec(CONFIG, function() {
|
||||
CloudCmd.getConfig(function(config) {
|
||||
var i, n, div, data, li, param, obj = {};
|
||||
|
||||
CONFIG = config;
|
||||
Util.copyObj(CONFIG, obj);
|
||||
changeConfig(obj);
|
||||
data = Util.render(TEMPLATE, obj);
|
||||
|
|
@ -83,11 +84,6 @@ var CloudCmd, Util, DOM;
|
|||
CloudCmd.View.show(div, null, {
|
||||
autoSize: true
|
||||
});
|
||||
}, function(callback) {
|
||||
CloudCmd.getConfig(function(config){
|
||||
CONFIG = config;
|
||||
callback();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue