Explorar el Código

mirror fix on release JS

Unknwon hace 10 años
padre
commit
cf7ebfbdc8
Se han modificado 2 ficheros con 7 adiciones y 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');
+        }
     })
 }
 

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
public/ng/js/min/gogs-min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio