diff --git a/modules/ext.abuseFilter.edit.js b/modules/ext.abuseFilter.edit.js index 254fbbf0e..2243abbe8 100644 --- a/modules/ext.abuseFilter.edit.js +++ b/modules/ext.abuseFilter.edit.js @@ -560,7 +560,7 @@ var cbEnabled = OO.ui.infuse( $( '#wpFilterEnabled' ) ); var cbDeleted = OO.ui.infuse( $( '#wpFilterDeleted' ) ); - OO.ui.infuse( $( '#wpFilterDeletedLabel' ) ); + cbEnabled.on( 'change', function () { cbDeleted.setDisabled( cbEnabled.isSelected() );