aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authoralpencrossi <62932811+alpencrossi@users.noreply.github.com>2020-04-08 22:13:50 +0200
committerGitHub <noreply@github.com>2020-04-09 04:13:50 +0800
commit3e055e329cf93eb5de77562d7795240808d31c08 (patch)
tree5070d75abb87767b460cd2ee84a951db2b1db868 /public/js
parent5b36ba66c250ca72d42f034580f0260b090d6e17 (diff)
repo: disable public access option when using external wiki and issue tracker (#6081)
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 263d83b5..6ce55958 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -1621,11 +1621,13 @@ $(document).ready(function() {
$($(this).data("target")).removeClass("disabled");
} else {
$($(this).data("target")).addClass("disabled");
+ $($(this).data("uncheck")).prop("checked", false);
}
});
$(".enable-system-radio").change(function() {
$($(this).data("enable")).removeClass("disabled");
$($(this).data("disable")).addClass("disabled");
+ $($(this).data("uncheck")).prop("checked", false);
});
// Set anchor.