Don't treat all views as experimental, only the namespace and tag ones.
Change-Id: I1ec014314217b52cdfd71ccfcf10d549bea55f6c
+ allViews = $.extend( true, {
'default': {
title: mw.msg( 'rcfilters-filterlist-title' ),
groups: filterGroups
}
'default': {
title: mw.msg( 'rcfilters-filterlist-title' ),
groups: filterGroups
}
- };
-
- if ( views && mw.config.get( 'wgStructuredChangeFiltersEnableExperimentalViews' ) ) {
- // If we have extended views, add them in
- $.extend( true, allViews, views );
- }
// Go over all views
$.each( allViews, function ( viewName, viewData ) {
// Go over all views
$.each( allViews, function ( viewName, viewData ) {
items = [],
uri = new mw.Uri(),
$changesList = $( '.mw-changeslist' ).first().contents(),
items = [],
uri = new mw.Uri(),
$changesList = $( '.mw-changeslist' ).first().contents(),
+ experimentalViews = mw.config.get( 'wgStructuredChangeFiltersEnableExperimentalViews' ),
createFilterDataFromNumber = function ( num, convertedNumForLabel ) {
return {
name: String( num ),
createFilterDataFromNumber = function ( num, convertedNumForLabel ) {
return {
name: String( num ),
- if ( namespaceStructure ) {
+ if ( namespaceStructure && experimentalViews ) {
items = [];
$.each( namespaceStructure, function ( namespaceID, label ) {
// Build and clean up the individual namespace items definition
items = [];
$.each( namespaceStructure, function ( namespaceID, label ) {
// Build and clean up the individual namespace items definition
+ if ( tagList && experimentalViews ) {
views.tags = {
title: mw.msg( 'rcfilters-view-tags' ),
trigger: '#',
views.tags = {
title: mw.msg( 'rcfilters-view-tags' ),
trigger: '#',