diff options
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 0b205923..59cdf5d6 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -187,6 +187,16 @@ function initInstall() { $('#disable-gravatar').checkbox('check'); } }); + $('#disable-registration input').change(function () { + if ($(this).is(':checked')) { + $('#enable-captcha').checkbox('uncheck'); + } + }); + $('#enable-captcha input').change(function () { + if ($(this).is(':checked')) { + $('#disable-registration').checkbox('uncheck'); + } + }); } function initRepository() { |