From 5239e23ef26c33e666aefbd238fcadd26a933b46 Mon Sep 17 00:00:00 2001 From: "Julia.Radzhabova" Date: Tue, 20 May 2025 16:14:04 +0300 Subject: [PATCH] Fix Bug 74551 --- apps/common/main/lib/template/Comments.template | 4 ++-- apps/common/main/lib/template/CommentsPopover.template | 4 ++-- apps/common/main/lib/view/Comments.js | 2 +- apps/common/main/lib/view/ReviewPopover.js | 4 ++-- apps/common/main/resources/less/comments.less | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/common/main/lib/template/Comments.template b/apps/common/main/lib/template/Comments.template index 345f41e569..eec227f93a 100644 --- a/apps/common/main/lib/template/Comments.template +++ b/apps/common/main/lib/template/Comments.template @@ -59,7 +59,7 @@ <% if (!scope.viewmode) { %>
<% if (item.get("editable")) { %> -
">
+
">
<% } %> <% if (item.get("removable")) { %>
">
@@ -94,7 +94,7 @@
<% if (!scope.viewmode) { %> <% if (editable) { %> -
+
<% } %> <% if (removable) { %>
diff --git a/apps/common/main/lib/template/CommentsPopover.template b/apps/common/main/lib/template/CommentsPopover.template index e09499a79f..1fb1734c2e 100644 --- a/apps/common/main/lib/template/CommentsPopover.template +++ b/apps/common/main/lib/template/CommentsPopover.template @@ -58,7 +58,7 @@ <% if ((fullInfoInHint || !hint) && !scope.viewmode) { %>
<% if (item.get("editable")) { %> -
">
+
">
<%}%> <% if (item.get("removable")) { %>
">
@@ -93,7 +93,7 @@
<% if ((fullInfoInHint || !hint) && !scope.viewmode) { %> <% if (editable) { %> -
+
<% } %> <% if (removable) { %>
diff --git a/apps/common/main/lib/view/Comments.js b/apps/common/main/lib/view/Comments.js index 31fd74a4d2..4d5314c727 100644 --- a/apps/common/main/lib/view/Comments.js +++ b/apps/common/main/lib/view/Comments.js @@ -204,7 +204,7 @@ define([ commentId = record.get('uid'); replyId = btn.attr('data-value'); - if (btn.hasClass('btn-edit')) { + if (btn.hasClass('btn-edit-common')) { if (!_.isUndefined(replyId)) { me.fireEvent('comment:closeEditing', [commentId]); me.fireEvent('comment:editReply', [commentId, replyId]); diff --git a/apps/common/main/lib/view/ReviewPopover.js b/apps/common/main/lib/view/ReviewPopover.js index adc90a529f..a2fc67a327 100644 --- a/apps/common/main/lib/view/ReviewPopover.js +++ b/apps/common/main/lib/view/ReviewPopover.js @@ -293,7 +293,7 @@ define([ btns.each(function (idx, item) { arr.push($(item).data('bs.tooltip').tip()); }); - btns = $(view.el).find('.btn-edit'); + btns = $(view.el).find('.btn-edit-common'); btns.tooltip({title: me.txtEditTip, placement: 'cursor'}); btns.each(function (idx, item) { arr.push($(item).data('bs.tooltip').tip()); @@ -345,7 +345,7 @@ define([ return; } - if (btn.hasClass('btn-edit')) { + if (btn.hasClass('btn-edit-common')) { var tip = btn.data('bs.tooltip'); if (tip) tip.dontShow = true; diff --git a/apps/common/main/resources/less/comments.less b/apps/common/main/resources/less/comments.less index f473694cc8..0a9acef287 100644 --- a/apps/common/main/resources/less/comments.less +++ b/apps/common/main/resources/less/comments.less @@ -351,7 +351,7 @@ cursor: pointer; } - .btn-edit,.btn-delete, .btn-resolve, .icon-resolve, .btn-resolve-check, .btn-accept, .btn-reject, .btn-goto { + .btn-edit-common,.btn-delete, .btn-resolve, .icon-resolve, .btn-resolve-check, .btn-accept, .btn-reject, .btn-goto { width: 16px; height: 16px; margin: 1px 0 0 5px; @@ -366,7 +366,7 @@ float: left; } - .btn-edit { + .btn-edit-common { background-position: 0px -4px; }