Share document when send mentions

This commit is contained in:
Julia Radzhabova 2019-04-23 15:02:42 +03:00
parent 25e50435bb
commit 1f977c6393
3 changed files with 6 additions and 3 deletions

View file

@ -988,11 +988,12 @@ define([
setMode: function(mode) {
this.sharingSettingsUrl = mode.sharingSettingsUrl;
!!this.sharingSettingsUrl && this.sharingSettingsUrl.length && Common.Gateway.on('showsharingsettings', _.bind(this.changeAccessRights, this));
return this;
},
changeAccessRights: function(btn,event,opts) {
if (this._docAccessDlg) return;
if (this._docAccessDlg || this._readonlyRights) return;
var me = this;
me._docAccessDlg = new Common.Views.DocumentAccessDialog({

View file

@ -801,11 +801,12 @@ define([
setMode: function(mode) {
this.sharingSettingsUrl = mode.sharingSettingsUrl;
!!this.sharingSettingsUrl && this.sharingSettingsUrl.length && Common.Gateway.on('showsharingsettings', _.bind(this.changeAccessRights, this));
return this;
},
changeAccessRights: function(btn,event,opts) {
if (this._docAccessDlg) return;
if (this._docAccessDlg || this._readonlyRights) return;
var me = this;
me._docAccessDlg = new Common.Views.DocumentAccessDialog({

View file

@ -1255,11 +1255,12 @@ define([
setMode: function(mode) {
this.sharingSettingsUrl = mode.sharingSettingsUrl;
!!this.sharingSettingsUrl && this.sharingSettingsUrl.length && Common.Gateway.on('showsharingsettings', _.bind(this.changeAccessRights, this));
return this;
},
changeAccessRights: function(btn,event,opts) {
if (this._docAccessDlg) return;
if (this._docAccessDlg || this._readonlyRights) return;
var me = this;
me._docAccessDlg = new Common.Views.DocumentAccessDialog({