Browse Source

mirror fix on release JS

Unknwon 10 years ago
parent
commit
cf7ebfbdc8
2 changed files with 7 additions and 2 deletions
  1. 7 2
      public/ng/js/gogs.js
  2. 0 0
      public/ng/js/min/gogs-min.js

+ 7 - 2
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');
+        }
     })
 }
 

File diff suppressed because it is too large
+ 0 - 0
public/ng/js/min/gogs-min.js


Some files were not shown because too many files changed in this diff