Bug 581933: Make YUI user autocomplete work with non-ASCII characters

r=Wurblzap, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@261469 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2010-10-27 08:02:25 +00:00
parent ff920a6fd8
commit 9676d24ce7
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
7575
7576

View File

@ -670,7 +670,7 @@ YAHOO.bugzilla.userAutocomplete = {
method : "User.get",
id : YAHOO.bugzilla.userAutocomplete.counter,
params : [ {
match : [ unescape(enteredText) ],
match : [ decodeURIComponent(enteredText) ],
include_fields : [ "email", "real_name" ]
} ]
};
@ -681,7 +681,7 @@ YAHOO.bugzilla.userAutocomplete = {
return stringified;
},
resultListFormat : function(oResultData, enteredText, sResultMatch) {
return ( unescape(oResultData.real_name) + " (" + oResultData.email + ")");
return ( oResultData.real_name + " (" + oResultData.email + ")");
},
debug_helper : function ( ){
/* used to help debug any errors that might happen */