Update jquery.uls
https://github.com/wikimedia/jquery.uls/commit/967eec093edb153f4fdd0e5e4 Updates: 1) Always send event when triggering onSelect The $.uls function in jquery.uls.core in createLanguageFilter passes the onSelect function to the $.fn.languagefilter so the onSelect there should be made compatible. 2) Removal of png images no longer needed for old browsers. Bug: T261973 Change-Id: Ie316cc627178dde15d22607b2099d0da96dd6fda
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
.uls-trigger {
|
.uls-trigger {
|
||||||
background: url( ../images/language.png ) no-repeat left center;
|
background: url( ../images/language.svg ) no-repeat left center;
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient( transparent, transparent ), url( ../images/language.svg );
|
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,9 +63,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.uls-search-label {
|
.uls-search-label {
|
||||||
background: url( ../images/search.png ) no-repeat center center;
|
background: url( ../images/search.svg ) no-repeat center center;
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient( transparent, transparent ), url( ../images/search.svg );
|
|
||||||
background-size: 20px;
|
background-size: 20px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
width: 44px;
|
width: 44px;
|
||||||
@@ -110,9 +106,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.uls-languagefilter-clear {
|
.uls-languagefilter-clear {
|
||||||
background: url( ../images/close.png ) no-repeat left center;
|
background: url( ../images/close.svg ) no-repeat left center;
|
||||||
/* @embed */
|
|
||||||
background-image: linear-gradient( transparent, transparent ), url( ../images/close.svg );
|
|
||||||
background-size: 15px;
|
background-size: 15px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 258 B |
Binary file not shown.
|
Before Width: | Height: | Size: 447 B |
Binary file not shown.
|
Before Width: | Height: | Size: 364 B |
@@ -107,11 +107,11 @@
|
|||||||
|
|
||||||
if ( this.selectedLanguage ) {
|
if ( this.selectedLanguage ) {
|
||||||
// this.selectLanguage will be populated from a matching search
|
// this.selectLanguage will be populated from a matching search
|
||||||
this.options.onSelect( this.selectedLanguage );
|
this.options.onSelect( this.selectedLanguage, e );
|
||||||
} else if ( this.options.languages[ query ] ) {
|
} else if ( this.options.languages[ query ] ) {
|
||||||
// Search is yet to happen (in timeout delay),
|
// Search is yet to happen (in timeout delay),
|
||||||
// but we have a matching language code.
|
// but we have a matching language code.
|
||||||
this.options.onSelect( query );
|
this.options.onSelect( query, e );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user