From 757b7bd462efda137134e0e3959061984600822b Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 16 Apr 2024 01:03:08 +0200 Subject: [PATCH] [BUG] Fix archive button on release page - Add another selector to the list, which corresponds to the container of the archive buttons on the release page of an repository. - Seems like that 8d2b7646079234e66fd05eac681c6574355de218 missed another case. - Resolves #3180 (cherry picked from commit 39c3295f686c02e74d8129b77738080f4750e718) --- web_src/js/features/repo-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-common.js b/web_src/js/features/repo-common.js index b750addb07..d6c47d8512 100644 --- a/web_src/js/features/repo-common.js +++ b/web_src/js/features/repo-common.js @@ -3,7 +3,7 @@ import {hideElem, showElem} from '../utils/dom.js'; import {POST} from '../modules/fetch.js'; async function getArchive($target, url, first) { - const dropdownBtn = $target[0].closest('.ui.dropdown.button') ?? $target[0].closest('.ui.dropdown.btn'); + const dropdownBtn = $target[0].closest('.ui.dropdown.button') ?? $target[0].closest('.ui.dropdown.btn') ?? $target[0].closest('details.download'); try { dropdownBtn.classList.add('is-loading');