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) { var emptyTrashInner = function (Env, cb) {
return void Env.sframeChan.query("Q_DRIVE_USEROBJECT", { return void Env.sframeChan.query("Q_DRIVE_USEROBJECT", {
cmd: "emptyTrash" cmd: "emptyTrash",
data: null
}, cb); }, cb);
}; };
var addFolderInner = function (Env, path, name, cb) { var addFolderInner = function (Env, path, name, cb) {

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

Loading…
Cancel
Save