From 3e055e329cf93eb5de77562d7795240808d31c08 Mon Sep 17 00:00:00 2001 From: alpencrossi <62932811+alpencrossi@users.noreply.github.com> Date: Wed, 8 Apr 2020 22:13:50 +0200 Subject: repo: disable public access option when using external wiki and issue tracker (#6081) --- public/js/gogs.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/js') 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. -- cgit v1.2.3