소스 검색

Select HTTPS if remembered clone protocol is SSH but SSH is disabled now

Florian Kaiser 9 년 전
부모
커밋
84749736a8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      public/js/gogs.js

+ 3 - 1
public/js/gogs.js

@@ -1042,7 +1042,9 @@ $(window).load(function () {
     if ($('#repo-clone-url').length > 0) {
         switch (localStorage.getItem('repo-clone-protocol')) {
             case 'ssh':
-                $('#repo-clone-ssh').click();
+                if ($('#repo-clone-ssh').click().length === 0) {
+                    $('#repo-clone-https').click();
+                };
                 break;
             default:
                 $('#repo-clone-https').click();