From 5e047b9bd7ba4bfa1c1ae3683eabe7e290de5728 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Mon, 3 May 2021 13:27:48 -0400 Subject: 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 Co-authored-by: Kyle D --- web_src/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web_src/js/index.js') 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'); } -- cgit v1.2.3