myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1078794 - /myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Date Mon, 07 Mar 2011 14:50:07 GMT
Author: lofwyr
Date: Mon Mar  7 14:50:07 2011
New Revision: 1078794

URL: http://svn.apache.org/viewvc?rev=1078794&view=rev
Log:
TOBAGO-977: JavaScript Error on InputSuggest with deactivated SessionSecret Token

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1078794&r1=1078793&r2=1078794&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Mon Mar  7 14:50:07 2011
@@ -595,9 +595,11 @@ var Tobago = {
   getSecretParam: function() {
     var secret = Tobago.element("org.apache.myfaces.tobago.webapp.Secret");
     var suffix = "";
-    suffix += encodeURIComponent(secret.name);
-    suffix += "=";
-    suffix += encodeURIComponent(secret.value);
+    if (secret) {
+      suffix += encodeURIComponent(secret.name);
+      suffix += "=";
+      suffix += encodeURIComponent(secret.value);
+    }
     return suffix;
   },
 



Mime
View raw message