- // Bind namespace select to change event
- // see resources/src/mediawiki.special/mediawiki.special.recentchanges.js
- $namespaceCheckboxes.prop( 'disabled', $namespaceSelect.val() === '' );
- $namespaceSelect.on( 'change', function () {
- $namespaceCheckboxes.prop( 'disabled', $( this ).val() === '' );
- } );
+ // Hide namespaces and tags
+ if ( mw.config.get( 'wgStructuredChangeFiltersEnableExperimentalViews' ) ) {
+ $namespaceSelect.closest( 'tr' ).detach();
+ this.$element.find( '.mw-tagfilter-label' ).closest( 'tr' ).detach();
+ }