From 8196430f47842fba4f227b105cd96d4b981d077d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Mar 2017 16:25:40 -0400 Subject: repo: allow private repository to have public wiki or issues Relates to #649 and #2157 --- public/js/gogs.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'public/js/gogs.js') diff --git a/public/js/gogs.js b/public/js/gogs.js index 17c7b53d..659bc741 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -265,11 +265,8 @@ function initRepository() { } }); $('.enable-system-radio').change(function () { - if (this.value == 'false') { - $($(this).data('target')).addClass('disabled'); - } else if (this.value == 'true') { - $($(this).data('target')).removeClass('disabled'); - } + $($(this).data('enable')).removeClass('disabled'); + $($(this).data('disable')).addClass('disabled'); }); } @@ -1289,7 +1286,7 @@ $(document).ready(function () { $this.data('url', url); $this.removeClass('disabled'); } else { - $this.remove(); + $this.remove(); } }); }); -- cgit v1.2.3