Update jquery.uls from upstream
Fixes two javascript error cases Also fixes Bug 49382 Change-Id: I549d313f8bd570f89b2591491df97166dc999afc
This commit is contained in:
@@ -82,6 +82,10 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid bubbling this 'enter' to background page elements
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
query = $.trim( this.$element.val() ).toLowerCase();
|
query = $.trim( this.$element.val() ).toLowerCase();
|
||||||
|
|
||||||
if ( this.selectedLanguage ) {
|
if ( this.selectedLanguage ) {
|
||||||
@@ -243,6 +247,10 @@
|
|||||||
this.selectedLanguage = langCode;
|
this.selectedLanguage = langCode;
|
||||||
languageName = languageName || this.options.languages[langCode];
|
languageName = languageName || this.options.languages[langCode];
|
||||||
|
|
||||||
|
if ( !languageName ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var autonym,
|
var autonym,
|
||||||
userInput = this.$element.val(),
|
userInput = this.$element.val(),
|
||||||
suggestion = userInput + languageName.substring( userInput.length, languageName.length );
|
suggestion = userInput + languageName.substring( userInput.length, languageName.length );
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !this.options.quickList ) {
|
if ( !this.options.quickList ) {
|
||||||
return;
|
return $( [] );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pick only the first elements, because we don't have room for more
|
// Pick only the first elements, because we don't have room for more
|
||||||
|
|||||||
Reference in New Issue
Block a user