Explorar o código

mirror fix on release JS

Unknwon %!s(int64=10) %!d(string=hai) anos
pai
achega
cf7ebfbdc8
Modificáronse 2 ficheiros con 7 adicións e 2 borrados
  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');
+        }
     })
 }
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
public/ng/js/min/gogs-min.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio