mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
fix(client) destroy file view even if we can not read directory
This commit is contained in:
parent
d872a4f0c8
commit
60a8503e76
1 changed files with 13 additions and 10 deletions
|
|
@ -372,17 +372,20 @@ var Util, DOM, CloudFunc, join;
|
|||
createFileTable(obj, panel, options, callback);
|
||||
else
|
||||
RESTful.read(path, 'json', function(error, obj) {
|
||||
createFileTable(obj, panel, options, function() {
|
||||
var current;
|
||||
if (!error) {
|
||||
Storage.set(path, obj);
|
||||
|
||||
if (isRefresh && !noCurrent) {
|
||||
current = DOM.getCurrentByName(name);
|
||||
DOM.setCurrentFile(current);
|
||||
}
|
||||
|
||||
Util.exec(callback);
|
||||
});
|
||||
Storage.set(path, obj);
|
||||
createFileTable(obj, panel, options, function() {
|
||||
var current;
|
||||
|
||||
if (isRefresh && !noCurrent) {
|
||||
current = DOM.getCurrentByName(name);
|
||||
DOM.setCurrentFile(current);
|
||||
}
|
||||
|
||||
Util.exec(callback);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue