You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/03/07 15:50:07 UTC
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
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;
},