From cf7ebfbdc8d1e36c6ed0cf5a50810da056f8a559 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 10 Dec 2014 16:41:49 -0500 Subject: mirror fix on release JS --- public/ng/js/gogs.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'public/ng/js/gogs.js') 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'); + } }) } -- cgit v1.2.3