]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 581933: Make YUI user autocomplete work with non-ASCII characters
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 27 Oct 2010 07:48:57 +0000 (00:48 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 27 Oct 2010 07:48:57 +0000 (00:48 -0700)
r=Wurblzap, a=LpSolit

js/field.js

index 8e1f5399111f20ba280a16e3c0b4d9cf728217b9..a70e41a649ccc3e3b4fcb819fb1c3747fd3e5ba6 100644 (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 */