|
|
@ -72,10 +72,6 @@ define([
|
|
|
|
var updateObject = function (sframeChan, obj, cb) {
|
|
|
|
var updateObject = function (sframeChan, obj, cb) {
|
|
|
|
sframeChan.query('Q_DRIVE_GETOBJECT', null, function (err, newObj) {
|
|
|
|
sframeChan.query('Q_DRIVE_GETOBJECT', null, function (err, newObj) {
|
|
|
|
copyObjectValue(obj, newObj);
|
|
|
|
copyObjectValue(obj, newObj);
|
|
|
|
if (!driveAPP.loggedIn && driveAPP.newSharedFolder) {
|
|
|
|
|
|
|
|
obj.drive.sharedFolders = obj.drive.sharedFolders || {};
|
|
|
|
|
|
|
|
obj.drive.sharedFolders[driveAPP.newSharedFolder] = {};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
cb();
|
|
|
|
cb();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -922,9 +918,6 @@ define([
|
|
|
|
common.setTabTitle(Messages.type.teams);
|
|
|
|
common.setTabTitle(Messages.type.teams);
|
|
|
|
|
|
|
|
|
|
|
|
// Drive data
|
|
|
|
// Drive data
|
|
|
|
if (privateData.newSharedFolder) {
|
|
|
|
|
|
|
|
driveAPP.newSharedFolder = privateData.newSharedFolder;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
driveAPP.disableSF = !privateData.enableSF && AppConfig.disableSharedFolders;
|
|
|
|
driveAPP.disableSF = !privateData.enableSF && AppConfig.disableSharedFolders;
|
|
|
|
|
|
|
|
|
|
|
|
// Toolbar
|
|
|
|
// Toolbar
|
|
|
|