Skip to content

Commit

Permalink
Fix branch selector on release page in 1.19 (go-gitea#25706)
Browse files Browse the repository at this point in the history
Fix go-gitea#25705

Regression of go-gitea#24369

There is no problem in 1.20 because there is go-gitea#24459

(cherry picked from commit 67d16c6)
  • Loading branch information
wxiaoguang authored and earl-warren committed Jul 10, 2023
1 parent daf0fa0 commit b01fb88
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web_src/js/features/repo-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,7 @@ export function initRepository() {
return;
}


// 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');
}
initRepoBranchTagDropdown('.choose.reference .dropdown');

// Wiki
if ($('.repository.wiki.view').length > 0) {
Expand Down

0 comments on commit b01fb88

Please sign in to comment.