diff options
author | Jonathan Tran <jonnytran@gmail.com> | 2021-05-03 13:27:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 13:27:48 -0400 |
commit | 5e047b9bd7ba4bfa1c1ae3683eabe7e290de5728 (patch) | |
tree | 4f677454d6184de0ba06fed197a478ec6ce8dfe7 /web_src/js/index.js | |
parent | 1b017fe7ca9df5a8c7d7823a1ded897fc324f9d3 (diff) | |
download | gitea-5e047b9bd7ba4bfa1c1ae3683eabe7e290de5728.tar.gz gitea-5e047b9bd7ba4bfa1c1ae3683eabe7e290de5728.zip |
Add compare tag dropdown to releases page (#15695)
* Add compare tag dropdown to releases page
* Change defaults to be more intuitive and remove unneeded option
* Fix to select branch on releases page
Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 1716df9e7f..89cc0aa11c 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -781,7 +781,8 @@ async function initRepository() { }); // File list and commits - if ($('.repository.file.list').length > 0 || ('.repository.commits').length > 0) { + if ($('.repository.file.list').length > 0 || + $('.repository.commits').length > 0 || $('.repository.release').length > 0) { initFilterBranchTagDropdown('.choose.reference .dropdown'); } |