diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index a9c438569..86f633598 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -1066,6 +1066,7 @@ define([ if (this.tooltips.foreignSelect.ref) { $(this.tooltips.foreignSelect.ref).remove(); this.tooltips.foreignSelect.ref = undefined; + this.tooltips.foreignSelect.userId = undefined; this.tooltips.foreignSelect.x_point = undefined; this.tooltips.foreignSelect.y_point = undefined; } @@ -1387,6 +1388,7 @@ define([ var src = $(document.createElement("div")), color = data.asc_getColor(); foreignSelect.ref = src; + foreignSelect.userId = data.asc_getUserId(); src.addClass('username-tip'); src.css({ @@ -3754,6 +3756,9 @@ define([ /** coauthoring begin **/ var src; var me = this; + if (me.tooltips && me.tooltips.foreignSelect && (me.tooltips.foreignSelect.userId == UserId)) { + me.hideForeignSelectTips(); + } for (var i=0; i