Fix for UTF8 URLs in static JS files. Next, all templated/snippet based JS has to be reviewed. Partial fix for bug#12065

This commit is contained in:
Colin Kuskie 2011-03-28 12:39:31 -07:00
parent 0c1486c8d4
commit 25fe87db19
16 changed files with 65 additions and 57 deletions

View file

@ -72,7 +72,8 @@ WebGUI.FieldCheck.AjaxEvent.prototype = {
return false;
} else {
this.sUri = (!sUri) ? this.sUri : sUri;
YAHOO.util.Connect.asyncRequest('GET', this.sUri, {
var url = encodeURI(this.sUri);
YAHOO.util.Connect.asyncRequest('GET', url, {
success: function (o) {
var oJSON = eval("(" + o.responseText + ")");
var imgEltId=fieldId+"_Img";