Fix Bug 39930 - Common languages not always shown in the Worldwide region

Change-Id: I764af7ad88cf79e9e07b96f899f352ad3082df45
This commit is contained in:
Santhosh Thottingal
2012-09-06 14:14:28 +05:30
parent bad1394c6a
commit b7d61c3607
2 changed files with 6 additions and 4 deletions

View File

@@ -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();
}, },

View File

@@ -95,7 +95,7 @@
} }
if ( this.options.success ) { if ( this.options.success ) {
this.options.success.call(); this.options.success( this );
} }
}, },