summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index c7b8934874..91d16192de 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -114,10 +114,9 @@ function initEditForm() {
function initBranchSelector() {
const $selectBranch = $('.ui.select-branch');
const $branchMenu = $selectBranch.find('.reference-list-menu');
- $branchMenu.find('.item:not(.no-select)').on('click', function () {
- const selectedValue = $(this).data('id');
- $($(this).data('id-selector')).val(selectedValue);
- $selectBranch.find('.ui .branch-name').text(selectedValue);
+ $branchMenu.find('.item:not(.no-select)').click(function () {
+ $($(this).data('id-selector')).val($(this).data('id'));
+ $selectBranch.find('.ui .branch-name').text($(this).data('name'));
});
$selectBranch.find('.reference.column').on('click', function () {
$selectBranch.find('.scrolling.reference-list-menu').css('display', 'none');