Clean some code
This commit is contained in:
parent
670d845262
commit
fd7567188b
@ -1524,10 +1524,12 @@ define([
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Store.addSharedFolder = function (clientId, data, cb) {
|
Store.addSharedFolder = function (clientId, data, cb) {
|
||||||
Store.userObjectCommand(clientId, {
|
store.manager.addSharedFolder(data, function (id) {
|
||||||
cmd: 'addSharedFolder',
|
sendDriveEvent('DRIVE_CHANGE', {
|
||||||
data: data
|
path: ['drive', UserObject.FILES_DATA]
|
||||||
}, cb);
|
}, clientId);
|
||||||
|
cb(id);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// Drive
|
// Drive
|
||||||
|
|||||||
@ -458,8 +458,10 @@ define([
|
|||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}).nThen(function () {
|
}).nThen(function () {
|
||||||
|
Env.onSync(function () {
|
||||||
cb(id);
|
cb(id);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// convert a folder to a Shared Folder
|
// convert a folder to a Shared Folder
|
||||||
@ -935,6 +937,7 @@ define([
|
|||||||
// Manager
|
// Manager
|
||||||
addProxy: callWithEnv(addProxy),
|
addProxy: callWithEnv(addProxy),
|
||||||
removeProxy: callWithEnv(removeProxy),
|
removeProxy: callWithEnv(removeProxy),
|
||||||
|
addSharedFolder: callWithEnv(addSharedFolder);
|
||||||
// Drive
|
// Drive
|
||||||
command: callWithEnv(onCommand),
|
command: callWithEnv(onCommand),
|
||||||
getPadAttribute: callWithEnv(getPadAttribute),
|
getPadAttribute: callWithEnv(getPadAttribute),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user