Unknwon 10 роки тому
батько
коміт
cf7ebfbdc8
2 змінених файлів з 7 додано та 2 видалено
  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');
+        }
     })
 }
 

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
public/ng/js/min/gogs-min.js


Деякі файли не було показано, через те що забагато файлів було змінено