Fix status check enable (#10341)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/10342/head^2
John Olheiser 5 years ago committed by GitHub
parent 69f80fd9f6
commit 29efa9c3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/index.js

@ -1116,7 +1116,7 @@ function initRepository() {
// Branches // Branches
if ($('.repository.settings.branches').length > 0) { if ($('.repository.settings.branches').length > 0) {
initFilterSearchDropdown('.protected-branches .dropdown'); initFilterSearchDropdown('.protected-branches .dropdown');
$('.enable-protection, .enable-whitelist').change(function () { $('.enable-protection, .enable-whitelist, .enable-statuscheck').change(function () {
if (this.checked) { if (this.checked) {
$($(this).data('target')).removeClass('disabled'); $($(this).data('target')).removeClass('disabled');
} else { } else {

Loading…
Cancel
Save