Update jquery.uls from upstream
Upstream: https://github.com/wikimedia/jquery.uls/ Changes: * Update Autonym font * Code formatting fixes * Localization updates * Language autonym correction and language additions * Performance fix for region selector Change-Id: I1da30aa31ad8a4fe430a12fef05c4e6b54fc6648
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -114,7 +114,6 @@
|
||||
return allRegions;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns all languages written in script.
|
||||
* @param script string
|
||||
@@ -364,7 +363,6 @@
|
||||
return regionsInGroup;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the script group of a script or 'Other' if it doesn't
|
||||
* belong to any group.
|
||||
@@ -464,5 +462,4 @@
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
} ( jQuery ) );
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
this.$element.addClass( 'languagefilter' );
|
||||
this.resultCount = 0;
|
||||
this.$suggestion = this.$element.parents().find( '#' + this.$element.data( 'suggestion' ) );
|
||||
this.$clear = this.$element.parents().find( '#'+ this.$element.data( 'clear' ) );
|
||||
this.$clear = this.$element.parents().find( '#' + this.$element.data( 'clear' ) );
|
||||
this.selectedLanguage = null;
|
||||
|
||||
this.listen();
|
||||
|
||||
@@ -331,5 +331,4 @@
|
||||
};
|
||||
|
||||
$.fn.lcd.Constructor = LanguageCategoryDisplay;
|
||||
|
||||
} ( jQuery ) );
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
this.options = $.extend( {}, $.fn.regionselector.defaults, options );
|
||||
this.$element.addClass( 'regionselector' );
|
||||
this.regions = [];
|
||||
this.cache= null;
|
||||
this.cache = null;
|
||||
this.regionGroup = this.$element.data( 'regiongroup' );
|
||||
this.init();
|
||||
this.listen();
|
||||
@@ -149,9 +149,12 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// Re-populate the list of languages
|
||||
this.options.$target.empty();
|
||||
this.show();
|
||||
// Scroll to appropriate area
|
||||
this.options.$target.$element
|
||||
.find( '#' + this.regions[0] )
|
||||
.get( 0 )
|
||||
.scrollIntoView( true, { behavior: 'smooth' } );
|
||||
|
||||
// Make the selected region (and it only) active
|
||||
$( '.regionselector' ).removeClass( 'active' );
|
||||
|
||||
@@ -188,5 +191,4 @@
|
||||
};
|
||||
|
||||
$.fn.regionselector.Constructor = RegionSelector;
|
||||
|
||||
} ( jQuery ) );
|
||||
|
||||
Reference in New Issue
Block a user