diff --git a/lib/jquery.uls/src/jquery.uls.core.js b/lib/jquery.uls/src/jquery.uls.core.js index 2fc5cf7b..cef10095 100644 --- a/lib/jquery.uls/src/jquery.uls.core.js +++ b/lib/jquery.uls/src/jquery.uls.core.js @@ -150,7 +150,6 @@ defaultSearch: function() { this.$resultsView.lcd( 'empty' ); - this.$resultsView.lcd( 'quicklist' ); this.$regionFilters.first().regionselector( 'show' ); }, @@ -231,10 +230,13 @@ this.$menu.find( '.uls-region, .uls-region-link' ).regionselector( { $target: lcd, languages: that.languages, - success: function() { + success: function( regionfilter ) { // Deactivate search filtering 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 that.success(); }, diff --git a/lib/jquery.uls/src/jquery.uls.regionfilter.js b/lib/jquery.uls/src/jquery.uls.regionfilter.js index ba4546dc..2e7f33e2 100644 --- a/lib/jquery.uls/src/jquery.uls.regionfilter.js +++ b/lib/jquery.uls/src/jquery.uls.regionfilter.js @@ -95,7 +95,7 @@ } if ( this.options.success ) { - this.options.success.call(); + this.options.success( this ); } },