Upload owned files

This commit is contained in:
yflory
2018-05-29 19:42:20 +02:00
parent a6bac8ae41
commit 93ecc06964
6 changed files with 166 additions and 14 deletions

View File

@@ -204,8 +204,8 @@ define([
});
};
common.uploadComplete = function (id, cb) {
postMessage("UPLOAD_COMPLETE", id, function (obj) {
common.uploadComplete = function (id, owned, cb) {
postMessage("UPLOAD_COMPLETE", {id: id, owned, owned}, function (obj) {
if (obj && obj.error) { return void cb(obj.error); }
cb(null, obj);
});