1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

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>
This commit is contained in:
L0veSunshine 2020-05-21 03:41:33 +08:00 committed by GitHub
parent 7c287b9f0b
commit b6d01ccdca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ function initReactionSelector(parent) {
if (resp && (resp.html || resp.empty)) { if (resp && (resp.html || resp.empty)) {
const content = $(vm).closest('.content'); const content = $(vm).closest('.content');
let react = content.find('.segment.reactions'); let react = content.find('.segment.reactions');
if (!resp.empty && react.length > 0) { if ((!resp.empty || resp.html === '') && react.length > 0) {
react.remove(); react.remove();
} }
if (!resp.empty) { if (!resp.empty) {