Parcourir la source

mirror fix on release JS

Unknwon il y a 10 ans
Parent
commit
cf7ebfbdc8
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  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');
+        }
     })
 }
 

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
public/ng/js/min/gogs-min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff