I'm getting this error in Firebug console when I try to change the text size 'TypeError: options.expires.toUTCString is not a function'
It's referring to the following line in this file jquery_update/replace/ui/external/jquery.cookie.js:
#78 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
The variable textsizeCookieExpires "365" is set as a string in textsize.module, something that was a number in previous version.
Changing the textsizeCookieExpires to a number resolves the issue.
Can anyone tell me if this is an error in the code? Or is there a reason why textsizeCookieExpires is set as a string?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | textsize-cookie-expires-2336779-1.patch | 688 bytes | roblav |
Comments
Comment #1
roblav commentedHere's a patch to solve this issue.
Comment #2
izmeez commentedGood question.
Comment #3
CZ commentedYou're right! Thanks! Wait for closing #1041878: SESSION Cookie set to anonymous users makes pages not cacheable by Boost or Varnish.
Comment #4
CZ commented