From 5f1183cecf4f3c6bf677369c4e2a2788b795ab15 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 13 Sep 2015 12:14:32 -0400 Subject: #697 add install option --- public/js/gogs.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'public/js') diff --git a/public/js/gogs.js b/public/js/gogs.js index 0b20592397..59cdf5d668 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() { -- cgit v1.2.3