mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 20:53:02 +00:00
fix(config) show: rm cssLoad
This commit is contained in:
parent
8241d59da0
commit
412f57e982
1 changed files with 6 additions and 12 deletions
|
|
@ -34,24 +34,18 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
this.show = function() {
|
||||
var funcs = [
|
||||
Util.exec.with(CloudCmd.getTemplate, Template, 'config'),
|
||||
cssLoad
|
||||
];
|
||||
var exec = Util.exec,
|
||||
funcs = [
|
||||
exec.with(CloudCmd.getTemplate, Template, 'config'),
|
||||
exec.with(DOM.load.css, '/css/config.css')
|
||||
];
|
||||
|
||||
if (!Loading) {
|
||||
showLoad();
|
||||
Util.exec.parallel(funcs, fillTemplate);
|
||||
exec.parallel(funcs, fillTemplate);
|
||||
}
|
||||
};
|
||||
|
||||
function cssLoad(callback) {
|
||||
DOM.cssLoad({
|
||||
src : '/css/config.css',
|
||||
func: Util.exec.ret(callback)
|
||||
});
|
||||
}
|
||||
|
||||
function fillTemplate(template) {
|
||||
if (!Template)
|
||||
Template = template;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue