index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
public
/
js
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Florian Kaiser <florian.kaiser@fnkr.net>
2016-02-01 20:42:10 +0000
committer
Florian Kaiser <florian.kaiser@fnkr.net>
2016-02-01 20:42:10 +0000
commit
84749736a81ea768e30aaa312d729c165dc1017d
(
patch
)
tree
85ee7a5818654e234052396be4c69a2a89e0ca1e
/
public/js
parent
d56801930668597bb8329978e384e61c0bd314ac
(
diff
)
Select HTTPS if remembered clone protocol is SSH but SSH is disabled now
Diffstat
(limited to 'public/js')
-rw-r--r--
public/js/gogs.js
4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index df48c7db..cee2a6a8 100644
--- a/
public/js/gogs.js
+++ b/
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();