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:
Santhosh Thottingal
2013-10-23 20:31:26 +05:30
parent 55eb19ecc5
commit 63a0dd5666
13 changed files with 18 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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 ) );

View File

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

View File

@@ -331,5 +331,4 @@
};
$.fn.lcd.Constructor = LanguageCategoryDisplay;
} ( jQuery ) );

View File

@@ -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 ) );