Empty trash callback was missing

pull/1/head
yflory 7 years ago
parent 1e092f36ba
commit 8c20c7823e

@ -753,7 +753,8 @@ define([
};
var emptyTrashInner = function (Env, cb) {
return void Env.sframeChan.query("Q_DRIVE_USEROBJECT", {
cmd: "emptyTrash"
cmd: "emptyTrash",
data: null
}, cb);
};
var addFolderInner = function (Env, path, name, cb) {

@ -595,14 +595,14 @@ define([
//if (typeof cb === "function") { cb(); }
};
exp.emptyTrash = function (cb) {
cb = cb || function () {};
if (sframeChan) {
return void sframeChan.query("Q_DRIVE_USEROBJECT", {
cmd: "emptyTrash"
}, cb);
}
files[TRASH] = {};
exp.checkDeletedFiles();
if(cb) { cb(); }
exp.checkDeletedFiles(false, cb);
};
// RENAME

Loading…
Cancel
Save