struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From musa...@apache.org
Subject svn commit: r591003 [1/2] - in /struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo: struts/widget/ComboBox.js struts_dojo.js struts_dojo.js.uncompressed.js
Date Thu, 01 Nov 2007 13:42:09 GMT
Author: musachy
Date: Thu Nov  1 06:42:08 2007
New Revision: 591003

URL: http://svn.apache.org/viewvc?rev=591003&view=rev
Log:
WW-2275 autocompleter tag doesn't send multibyte characters correctly
thanks to Sakamoto Osamu for the patch

Modified:
    struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js
    struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js
    struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js

Modified: struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js?rev=591003&r1=591002&r2=591003&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js
(original)
+++ struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/ComboBox.js
Thu Nov  1 06:42:08 2007
@@ -490,7 +490,7 @@
     if(this.loadOnType) {
       if(searchStr.length >= this.loadMinimum) {
           var nuHref = this.dataUrl + (this.dataUrl.indexOf("?") > -1 ? "&" : "?");
-      nuHref += this.name + '=' + searchStr;
+      nuHref += this.name + '=' +  encodeURIComponent(searchStr);
       this.dataProvider.getData(nuHref);
       this._startSearch(searchStr);
       } else {

Modified: struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js?rev=591003&r1=591002&r2=591003&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js
(original)
+++ struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js
Thu Nov  1 06:42:08 2007
@@ -1,20 +1,20 @@
 /*
-  Copyright (c) 2004-2006, The Dojo Foundation
-  All Rights Reserved.
+	Copyright (c) 2004-2006, The Dojo Foundation
+	All Rights Reserved.
 
-  Licensed under the Academic Free License version 2.1 or above OR the
-  modified BSD license. For more information on Dojo licensing, see:
+	Licensed under the Academic Free License version 2.1 or above OR the
+	modified BSD license. For more information on Dojo licensing, see:
 
-    http://dojotoolkit.org/community/licensing.shtml
+		http://dojotoolkit.org/community/licensing.shtml
 */
 
 /*
-  This is a compiled version of Dojo, built for deployment and not for
-  development. To get an editable version, please visit:
+	This is a compiled version of Dojo, built for deployment and not for
+	development. To get an editable version, please visit:
 
-    http://dojotoolkit.org
+		http://dojotoolkit.org
 
-  for documentation and information on getting the source.
+	for documentation and information on getting the source.
 */
 
 if(typeof dojo=="undefined"){
@@ -15189,7 +15189,7 @@
 if(this.loadOnType){
 if(_ca7.length>=this.loadMinimum){
 var _ca8=this.dataUrl+(this.dataUrl.indexOf("?")>-1?"&":"?");
-_ca8+=this.name+"="+_ca7;
+_ca8+=this.name+"="+encodeURIComponent(_ca7);
 this.dataProvider.getData(_ca8);
 this._startSearch(_ca7);
 }else{
@@ -16928,7 +16928,7 @@
 dojo.debug("adding selectedDate");
 dojo.html.addClass(this.clickedNode,this.classNames.selectedDate);
 this.selectedNode=this.clickedNode;
-}else if(this.value){
+}else{
 this._preInitUI(this.value,false,true);
 }
 this.clickedNode=null;



Mime
View raw message