myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r963255 - /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxUtils.js
Date Mon, 12 Jul 2010 12:15:31 GMT
Author: werpu
Date: Mon Jul 12 12:15:31 2010
New Revision: 963255

URL: http://svn.apache.org/viewvc?rev=963255&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2810

Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxUtils.js

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxUtils.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxUtils.js?rev=963255&r1=963254&r2=963255&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxUtils.js
(original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxUtils.js
Mon Jul 12 12:15:31 2010
@@ -193,8 +193,8 @@ myfaces._impl.core._Runtime.extendClass(
                     var uLen = element.options.length;
                     for (var u = 0; u < uLen; u++) {
                         // find all selected options
+                        var subBuf = [];
                         if (element.options[u].selected) {
-                            var subBuf = [];
                             var elementOption = element.options[u];
                             subBuf.push(encodeURIComponent(name));
                             subBuf.push("=");
@@ -204,7 +204,8 @@ myfaces._impl.core._Runtime.extendClass(
                                 subBuf.push(encodeURIComponent(elementOption.text));
                             }
 
-                        }  strBuf.push(subBuf.join(""));
+                        }
+                        strBuf.push(subBuf.join(""));
                     }
                 }
             }



Mime
View raw message