Update jquery.uls from upstream

Fixes two javascript error cases
Also fixes Bug 49382

Change-Id: I549d313f8bd570f89b2591491df97166dc999afc
This commit is contained in:
Santhosh Thottingal
2013-06-10 14:37:20 +05:30
parent 1fdd946460
commit 46eca263d3
2 changed files with 9 additions and 1 deletions

View File

@@ -82,6 +82,10 @@
break;
}
// Avoid bubbling this 'enter' to background page elements
e.preventDefault();
e.stopPropagation();
query = $.trim( this.$element.val() ).toLowerCase();
if ( this.selectedLanguage ) {
@@ -243,6 +247,10 @@
this.selectedLanguage = langCode;
languageName = languageName || this.options.languages[langCode];
if ( !languageName ) {
return;
}
var autonym,
userInput = this.$element.val(),
suggestion = userInput + languageName.substring( userInput.length, languageName.length );

View File

@@ -205,7 +205,7 @@
}
if ( !this.options.quickList ) {
return;
return $( [] );
}
// Pick only the first elements, because we don't have room for more