aboutsummaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 12:14:32 -0400
committerUnknwon <u@gogs.io>2015-09-13 12:14:32 -0400
commit5f1183cecf4f3c6bf677369c4e2a2788b795ab15 (patch)
tree84d66a1f584aebb3ec2a8e9e4e53c7ee6d8d738d /public/js
parentb0bf4cc1cb6e68968fa4a6076f57045a268026e9 (diff)
downloadgitea-5f1183cecf4f3c6bf677369c4e2a2788b795ab15.tar.gz
gitea-5f1183cecf4f3c6bf677369c4e2a2788b795ab15.zip
#697 add install option
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js10
1 files changed, 10 insertions, 0 deletions
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() {