diff options
author | Sandro Santilli <strk@kbt.io> | 2017-08-19 17:34:49 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-08-19 17:34:49 +0200 |
commit | 2c3a229a3c4cc3e86c5a1130bbd058ba78022a6a (patch) | |
tree | 674c05386c007308c7b4033756eba7cc6536b58c /public/js | |
parent | e7653a67a10483aa0e2c9cc019abe9021e8df9ce (diff) | |
download | gitea-2c3a229a3c4cc3e86c5a1130bbd058ba78022a6a.tar.gz gitea-2c3a229a3c4cc3e86c5a1130bbd058ba78022a6a.zip |
Add OpenID configuration in install page (#2276)
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js index f6060dc631..1bad33e08d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -311,9 +311,22 @@ function initInstall() { $('#offline-mode').checkbox('uncheck'); } }); + $('#enable-openid-signin input').change(function () { + if ($(this).is(':checked')) { + if ( $('#disable-registration input').is(':checked') ) { + } else { + $('#enable-openid-signup').checkbox('check'); + } + } else { + $('#enable-openid-signup').checkbox('uncheck'); + } + }); $('#disable-registration input').change(function () { if ($(this).is(':checked')) { $('#enable-captcha').checkbox('uncheck'); + $('#enable-openid-signup').checkbox('uncheck'); + } else { + $('#enable-openid-signup').checkbox('check'); } }); $('#enable-captcha input').change(function () { |