0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 15:23:14 -05:00

Fix branch selector on release page in 1.19 (#25706)

Fix #25705

Regression of #24369

There is no problem in 1.20 because there is #24459

(cherry picked from commit 67d16c653f)
This commit is contained in:
wxiaoguang 2023-07-06 00:56:10 +08:00 committed by Earl Warren
parent daf0fa06af
commit b01fb88728
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -486,12 +486,7 @@ export function initRepository() {
return; return;
} }
initRepoBranchTagDropdown('.choose.reference .dropdown');
// File list and commits
if ($('.repository.file.list').length > 0 || $('.branch-dropdown').length > 0 ||
$('.repository.commits').length > 0 || $('.repository.release').length > 0) {
initRepoBranchTagDropdown('.choose.reference .dropdown');
}
// Wiki // Wiki
if ($('.repository.wiki.view').length > 0) { if ($('.repository.wiki.view').length > 0) {