Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 13:16:10 +01:00

[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 8d2b764607 missed
another case.
- Resolves #3180
This commit is contained in:
Gusted 2024-04-16 01:03:08 +02:00
parent ceba1abe06
commit 39c3295f68
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -3,7 +3,7 @@ import {hideElem, showElem} from '../utils/dom.js';
import {POST} from '../modules/fetch.js'; import {POST} from '../modules/fetch.js';
async function getArchive($target, url, first) { 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 { try {
dropdownBtn.classList.add('is-loading'); dropdownBtn.classList.add('is-loading');