[SSE] Fix Bug 53730

This commit is contained in:
Julia Radzhabova 2021-11-16 14:19:07 +03:00
parent 9134607e89
commit 0c1fdb277a

View file

@ -1066,6 +1066,7 @@ define([
if (this.tooltips.foreignSelect.ref) { if (this.tooltips.foreignSelect.ref) {
$(this.tooltips.foreignSelect.ref).remove(); $(this.tooltips.foreignSelect.ref).remove();
this.tooltips.foreignSelect.ref = undefined; this.tooltips.foreignSelect.ref = undefined;
this.tooltips.foreignSelect.userId = undefined;
this.tooltips.foreignSelect.x_point = undefined; this.tooltips.foreignSelect.x_point = undefined;
this.tooltips.foreignSelect.y_point = undefined; this.tooltips.foreignSelect.y_point = undefined;
} }
@ -1387,6 +1388,7 @@ define([
var src = $(document.createElement("div")), var src = $(document.createElement("div")),
color = data.asc_getColor(); color = data.asc_getColor();
foreignSelect.ref = src; foreignSelect.ref = src;
foreignSelect.userId = data.asc_getUserId();
src.addClass('username-tip'); src.addClass('username-tip');
src.css({ src.css({
@ -3754,6 +3756,9 @@ define([
/** coauthoring begin **/ /** coauthoring begin **/
var src; var src;
var me = this; var me = this;
if (me.tooltips && me.tooltips.foreignSelect && (me.tooltips.foreignSelect.userId == UserId)) {
me.hideForeignSelectTips();
}
for (var i=0; i<me.fastcoauthtips.length; i++) { for (var i=0; i<me.fastcoauthtips.length; i++) {
if (me.fastcoauthtips[i].attr('userid') == UserId) { if (me.fastcoauthtips[i].attr('userid') == UserId) {
src = me.fastcoauthtips[i]; src = me.fastcoauthtips[i];