diff options
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(); } }); }); |