aboutsummaryrefslogtreecommitdiff
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-10 16:41:49 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-10 16:41:49 -0500
commitcf7ebfbdc8d1e36c6ed0cf5a50810da056f8a559 (patch)
tree2b791382c43113fbd93606b87f109b9857b21ee6 /public/ng/js/gogs.js
parentbc8721fb6c704255fd8be9edc9372e4d17adaee9 (diff)
mirror fix on release JS
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 10bf20f0..ee14fb40 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');
+ }
})
}