diff options
author | Unknwon <u@gogs.io> | 2017-03-24 16:25:40 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-24 16:25:40 -0400 |
commit | 8196430f47842fba4f227b105cd96d4b981d077d (patch) | |
tree | a7301f793cd341564edeb75425c21249b4b39035 /public/js/gogs.js | |
parent | 7a99e56893d00632a18d7aa030028eca28a96e3e (diff) |
repo: allow private repository to have public wiki or issues
Relates to #649 and #2157
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 9 |
1 files changed, 3 insertions, 6 deletions
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(); } }); }); |