diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 622eacbf0..38d00e6a2 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -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) { diff --git a/www/common/userObject.js b/www/common/userObject.js index 45769b2fd..d4f994cdc 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -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