repo: allow private repository to have public wiki or issues

Relates to #649 and #2157
This commit is contained in:
Unknwon
2017-03-24 16:25:40 -04:00
parent 7a99e56893
commit 8196430f47
15 changed files with 206 additions and 100 deletions

View File

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