Fix Bug 39930 - Common languages not always shown in the Worldwide region
Change-Id: I764af7ad88cf79e9e07b96f899f352ad3082df45
This commit is contained in:
@@ -150,7 +150,6 @@
|
|||||||
|
|
||||||
defaultSearch: function() {
|
defaultSearch: function() {
|
||||||
this.$resultsView.lcd( 'empty' );
|
this.$resultsView.lcd( 'empty' );
|
||||||
this.$resultsView.lcd( 'quicklist' );
|
|
||||||
this.$regionFilters.first().regionselector( 'show' );
|
this.$regionFilters.first().regionselector( 'show' );
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -231,10 +230,13 @@
|
|||||||
this.$menu.find( '.uls-region, .uls-region-link' ).regionselector( {
|
this.$menu.find( '.uls-region, .uls-region-link' ).regionselector( {
|
||||||
$target: lcd,
|
$target: lcd,
|
||||||
languages: that.languages,
|
languages: that.languages,
|
||||||
success: function() {
|
success: function( regionfilter ) {
|
||||||
// Deactivate search filtering
|
// Deactivate search filtering
|
||||||
that.$languageFilter.languagefilter( 'deactivate' );
|
that.$languageFilter.languagefilter( 'deactivate' );
|
||||||
|
// If it is WW region, show the quicklist
|
||||||
|
if ( regionfilter.regionGroup === 1 ) {
|
||||||
|
lcd.quicklist();
|
||||||
|
}
|
||||||
// Show 'results view' if we are in no results mode
|
// Show 'results view' if we are in no results mode
|
||||||
that.success();
|
that.success();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( this.options.success ) {
|
if ( this.options.success ) {
|
||||||
this.options.success.call();
|
this.options.success( this );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user