Don't highlight empty strings (between each letter)

Change-Id: I6608c8954f415eeaa8a40da4a1c0e22638a9f860
This commit is contained in:
Niklas Laxström
2012-06-22 09:56:28 +00:00
parent 9087825e6d
commit db360d7b9d

View File

@@ -35,6 +35,9 @@ jQuery( function( $ ) {
}
response( $.map( languages, function ( name, code ) {
if ( term === "" ) {
return { label: name, value: code };
}
if ( matcher.test( name ) ) {
return {
label: name.replace(