mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	This reverts commit 661d3d28e9.
			
			
This commit is contained in:
		| @@ -52,14 +52,14 @@ export function initRepoSettingBranches() { | ||||
|     initRepoCommonFilterSearchDropdown('.protected-branches .dropdown'); | ||||
|     $('.enable-protection, .enable-whitelist, .enable-statuscheck').on('change', function () { | ||||
|       if (this.checked) { | ||||
|         $.find($(this).data('target')).removeClass('disabled'); | ||||
|         $($(this).data('target')).removeClass('disabled'); | ||||
|       } else { | ||||
|         $.find($(this).data('target')).addClass('disabled'); | ||||
|         $($(this).data('target')).addClass('disabled'); | ||||
|       } | ||||
|     }); | ||||
|     $('.disable-whitelist').on('change', function () { | ||||
|       if (this.checked) { | ||||
|         $.find($(this).data('target')).addClass('disabled'); | ||||
|         $($(this).data('target')).addClass('disabled'); | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user