Update jquery.uls to ab3cd92

Important changes:

* Remove region filter module
* Remove jquery.uls.compact.css
* Remove unused methods from jquery.uls.data.utils module
* Localisation updates

Change-Id: If87bd21e19780fa5d90cedb4235854816c4adfba
This commit is contained in:
Santhosh Thottingal
2016-05-23 17:10:47 +05:30
committed by Niklas Laxström
parent 384b109362
commit f3b984e4e1
167 changed files with 182 additions and 655 deletions

View File

@@ -189,6 +189,10 @@
hide: function () {
this.$menu.hide();
this.shown = false;
if ( this.options.onCancel ) {
this.options.onCancel.call( this );
}
},
/**
@@ -217,8 +221,7 @@
* Bind the UI elements with their event listeners
*/
listen: function () {
var lcd, columnsOptions, languagesCount,
uls = this;
var lcd, columnsOptions, languagesCount;
columnsOptions = {
wide: 4,
@@ -261,28 +264,6 @@
onSelect: $.proxy( this.select, this )
} );
// Create region selectors, one per region
this.regionFilter = new $.uls.RegionSelector( {
$target: lcd,
languages: this.languages,
success: function ( regionfilter ) {
// Deactivate search filtering
uls.$languageFilter.languagefilter( 'deactivate' );
// If it is the WW region, show the quicklist
if ( regionfilter.regionGroup === 1 ) {
lcd.quicklist();
}
// Show 'results view' if we are in no results mode
uls.success();
},
noresults: function () {
uls.$languageFilter.languagefilter( 'clear' );
}
} );
this.$languageFilter.on( 'searchclear.uls', $.proxy( this.regionFilter.show, this.regionFilter ) );
this.$languageFilter.on( 'noresults.uls', $.proxy( this.noresults, this ) );
this.$languageFilter.on( 'resultsfound.uls', $.proxy( this.success, this ) );
@@ -295,7 +276,6 @@
*/
select: function ( langCode ) {
this.hide();
this.$languageFilter.trigger( 'searchclear' );
if ( this.options.onSelect ) {
this.options.onSelect.call( this, langCode );
}
@@ -310,10 +290,6 @@
}
this.hide();
if ( this.options.onCancel ) {
this.options.onCancel.call( this );
}
},
keyup: function ( e ) {