[SSE mobile] Fix Bug 47246
This commit is contained in:
parent
48337f68b8
commit
a57a451a3b
|
@ -830,9 +830,6 @@ define([
|
||||||
me.indexCurrentComment = 0;
|
me.indexCurrentComment = 0;
|
||||||
me.updateViewComment();
|
me.updateViewComment();
|
||||||
}
|
}
|
||||||
if (window.SSE) {
|
|
||||||
SSE.getController('AddOther').setHideAddComment(true);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
apiHideComments: function() {
|
apiHideComments: function() {
|
||||||
|
@ -840,9 +837,6 @@ define([
|
||||||
uiApp.closeModal();
|
uiApp.closeModal();
|
||||||
$('.container-view-comment').remove();
|
$('.container-view-comment').remove();
|
||||||
}
|
}
|
||||||
if (window.SSE) {
|
|
||||||
SSE.getController('AddOther').setHideAddComment(false);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
disabledViewComments: function(disabled) {
|
disabledViewComments: function(disabled) {
|
||||||
|
|
|
@ -86,16 +86,6 @@ define([
|
||||||
this.api.asc_registerCallback('asc_onHidePopMenu', _.bind(this.onApiHidePopMenu, this));
|
this.api.asc_registerCallback('asc_onHidePopMenu', _.bind(this.onApiHidePopMenu, this));
|
||||||
Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this));
|
Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this));
|
||||||
this.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(this.onCoAuthoringDisconnect,this));
|
this.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(this.onCoAuthoringDisconnect,this));
|
||||||
this.api.asc_registerCallback('asc_onShowComment', _.bind(this.onApiShowComment, this));
|
|
||||||
this.api.asc_registerCallback('asc_onHideComment', _.bind(this.onApiHideComment, this));
|
|
||||||
},
|
|
||||||
|
|
||||||
onApiShowComment: function(comments) {
|
|
||||||
_isComments = comments && comments.length>0;
|
|
||||||
},
|
|
||||||
|
|
||||||
onApiHideComment: function() {
|
|
||||||
_isComments = false;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
setMode: function (mode) {
|
setMode: function (mode) {
|
||||||
|
@ -313,6 +303,7 @@ define([
|
||||||
var iscelllocked = cellinfo.asc_getLocked(),
|
var iscelllocked = cellinfo.asc_getLocked(),
|
||||||
seltype = cellinfo.asc_getSelectionType(),
|
seltype = cellinfo.asc_getSelectionType(),
|
||||||
xfs = cellinfo.asc_getXfs();
|
xfs = cellinfo.asc_getXfs();
|
||||||
|
_isComments = cellinfo.asc_getComments().length>0; //prohibit adding multiple comments in one cell;
|
||||||
|
|
||||||
switch (seltype) {
|
switch (seltype) {
|
||||||
case Asc.c_oAscSelectionType.RangeCells: iscellmenu = true; break;
|
case Asc.c_oAscSelectionType.RangeCells: iscellmenu = true; break;
|
||||||
|
|
|
@ -70,6 +70,7 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
me.api = api;
|
me.api = api;
|
||||||
me.api.asc_registerCallback('asc_onError', _.bind(me.onError, me));
|
me.api.asc_registerCallback('asc_onError', _.bind(me.onError, me));
|
||||||
|
me.api.asc_registerCallback('asc_onSelectionChanged', _.bind(me.onApiSelectionChanged, me));
|
||||||
|
|
||||||
// me.api.asc_registerCallback('asc_onInitEditorFonts', _.bind(onApiLoadFonts, me));
|
// me.api.asc_registerCallback('asc_onInitEditorFonts', _.bind(onApiLoadFonts, me));
|
||||||
|
|
||||||
|
@ -80,8 +81,8 @@ define([
|
||||||
this.view.canViewComments = mode.canViewComments;
|
this.view.canViewComments = mode.canViewComments;
|
||||||
},
|
},
|
||||||
|
|
||||||
setHideAddComment: function(hide) {
|
onApiSelectionChanged: function(info) {
|
||||||
this.view.isComments = hide; //prohibit adding multiple comments in one cell
|
this.view.isComments = info.asc_getComments().length>0; //prohibit adding multiple comments in one cell
|
||||||
},
|
},
|
||||||
|
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
|
|
Loading…
Reference in a new issue