summaryrefslogtreecommitdiffstats
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/ng/js/gogs.js')
-rw-r--r--public/ng/js/gogs.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index 10bf20f0fc..ee14fb401f 100644
--- a/public/ng/js/gogs.js
+++ b/public/ng/js/gogs.js
@@ -435,8 +435,13 @@ function initHookTypeChange() {
function initRepoRelease() {
$('#release-new-target-branch-list li').click(function() {
- $('#repo-branch-current').text($(this).text());
- $('#tag-target').val($(this).text());
+ if (!$(this).hasClass('checked')) {
+ $('#repo-branch-current').text($(this).text());
+ $('#tag-target').val($(this).text());
+
+ $(this).parent().find('.checked').removeClass('checked');
+ $(this).addClass('checked');
+ }
})
}