mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature(files) set: callback -> Util.exec
This commit is contained in:
parent
5c5c05fa1a
commit
18e6cae27f
2 changed files with 4 additions and 5 deletions
|
|
@ -156,10 +156,9 @@ var CloudCmd, Util, DOM;
|
|||
Notify.request();
|
||||
}
|
||||
|
||||
CONFIG[name] = data;
|
||||
|
||||
DOM.Files.set('config', CONFIG, function() {
|
||||
Config.write(obj);
|
||||
Config.write(obj, function() {
|
||||
CONFIG[name] = data;
|
||||
DOM.Files.set('config', CONFIG);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ var Util, DOM, CloudCmd;
|
|||
showError(name);
|
||||
} else {
|
||||
Data[name] = data;
|
||||
callback(null);
|
||||
Util.exec(callback);
|
||||
}
|
||||
|
||||
if (name === 'config')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue