summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorFlorian Kaiser <florian.kaiser@fnkr.net>2016-02-01 20:42:10 +0000
committerFlorian Kaiser <florian.kaiser@fnkr.net>2016-02-01 20:42:10 +0000
commit84749736a81ea768e30aaa312d729c165dc1017d (patch)
tree85ee7a5818654e234052396be4c69a2a89e0ca1e /public
parentd56801930668597bb8329978e384e61c0bd314ac (diff)
downloadgitea-84749736a81ea768e30aaa312d729c165dc1017d.tar.gz
gitea-84749736a81ea768e30aaa312d729c165dc1017d.zip
Select HTTPS if remembered clone protocol is SSH but SSH is disabled now
Diffstat (limited to 'public')
-rw-r--r--public/js/gogs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index df48c7dbe9..cee2a6a845 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();