mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 13:29:12 -05: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 that8d2b764607
missed another case. - Resolves #3180 (cherry picked from commit39c3295f68
)
This commit is contained in:
parent
2879c15858
commit
757b7bd462
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue