Cookie does not remember when a user goes back to defult size

Permalink Browser Info Environment
Hi, first off, I really like this plug-in but second, I noticed a problem with the cookie, it does not remember when a user chooses to reset the text back to it's original size. Is there an easy fix for this?

Thanks!

Type: Discussion
Status: New
alphabetta
View Replies: View Best Answer
alphabetta replied on at Permalink Best Answer Reply
alphabetta
I took a look at the code, found the duplicate cookie plugin file another user mentioned and removed it..

This was the first time I have used the jQuery cookie plug-in and it has a few caveats, so anyone else who runs into the issue and looks up the documentation needs to be aware that the documentation is incorrect as pointed out in this getHub discussion:

https://github.com/carhartl/jquery-cookie/issues/21...

so I adjusted the code in the reset function to just delete the cookie because it was the quickest solution I had time for...

Search for this:
a(this).css("font-size","");

and add this right after:
$.cookie("fontscale", null, {path:'/'});

To embed in your templates, you will need to load the javascript in your header file or this plug-in will not work when embedded.
bryanlewis replied on at Permalink Reply
bryanlewis
Thank you! This helped fix the problem for me as well!
LucasAnderson replied on at Permalink Reply
LucasAnderson
Thanks for the fix, I've implemented this in the latest release.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.