Prechádzať zdrojové kódy

mirror fix on release JS

Unknwon 10 rokov pred
rodič
commit
cf7ebfbdc8
2 zmenil súbory, kde vykonal 7 pridanie a 2 odobranie
  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');
+        }
     })
 }
 

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
public/ng/js/min/gogs-min.js


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov