summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
authorL0veSunshine <xuan199651@gmail.com>2020-05-21 03:41:33 +0800
committerGitHub <noreply@github.com>2020-05-20 15:41:33 -0400
commitb6d01ccdca11830a46bd771d27ff01985ca2e727 (patch)
treefecdad2659f03de3efd202c5764a8a7e5acfb69d /web_src/js/index.js
parent7c287b9f0b133914f8fdb9da16871245c9a59f23 (diff)
downloadgitea-b6d01ccdca11830a46bd771d27ff01985ca2e727.tar.gz
gitea-b6d01ccdca11830a46bd771d27ff01985ca2e727.zip
Fix the bug that the emoji does not disappear (#11489)
* Fix the bug that the emoticon does not disappear * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index af1c4acd46..a1b92f38a9 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -239,7 +239,7 @@ function initReactionSelector(parent) {
if (resp && (resp.html || resp.empty)) {
const content = $(vm).closest('.content');
let react = content.find('.segment.reactions');
- if (!resp.empty && react.length > 0) {
+ if ((!resp.empty || resp.html === '') && react.length > 0) {
react.remove();
}
if (!resp.empty) {