Skip to content

Commit 2b1dba4

Browse files
committed
fix
1 parent 7eaf192 commit 2b1dba4

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

web_src/js/features/repo-issue.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,6 @@ export function initRepoIssueReferenceIssue() {
552552
// Reference issue
553553
$(document).on('click', '.reference-issue', function (event) {
554554
const $this = $(this);
555-
$this.closest('.dropdown').find('.menu').toggle('visible'); // eslint-disable-line
556-
557555
const content = $(`#${$this.data('target')}`).text();
558556
const poster = $this.data('poster-username');
559557
const reference = $this.data('reference');

web_src/js/features/repo-legacy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ export function initRepoCommentForm() {
291291
async function onEditContent(event) {
292292
event.preventDefault();
293293

294-
$(this).closest('.dropdown').find('.menu').toggle('visible'); // eslint-disable-line
295294
const $segment = $(this).closest('.header').next();
296295
const $editContentZone = $segment.find('.edit-content-zone');
297296
const $renderContent = $segment.find('.render-content');
@@ -584,7 +583,6 @@ function initRepoIssueCommentEdit() {
584583

585584
// Quote reply
586585
$(document).on('click', '.quote-reply', function (event) {
587-
$(this).closest('.dropdown').find('.menu').toggle('visible'); // eslint-disable-line
588586
const target = $(this).data('target');
589587
const quote = $(`#${target}`).text().replace(/\n/g, '\n> ');
590588
const content = `> ${quote}\n\n`;

0 commit comments

Comments
 (0)