|
|
@ -2083,7 +2083,7 @@ define([
|
|
|
|
Store.addSharedFolder = function (clientId, data, cb) {
|
|
|
|
Store.addSharedFolder = function (clientId, data, cb) {
|
|
|
|
var s = getStore(data.teamId);
|
|
|
|
var s = getStore(data.teamId);
|
|
|
|
s.manager.addSharedFolder(data, function (id) {
|
|
|
|
s.manager.addSharedFolder(data, function (id) {
|
|
|
|
if (id && typeof(id) == "object" && id.error) {
|
|
|
|
if (id && typeof(id) === "object" && id.error) {
|
|
|
|
return void cb(id);
|
|
|
|
return void cb(id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var send = data.teamId ? s.sendEvent : sendDriveEvent;
|
|
|
|
var send = data.teamId ? s.sendEvent : sendDriveEvent;
|
|
|
|