getsmap / smap-responsive

A JavaScript framework for simple creation of web maps with responsive design supporting a range of different browsers and devices
GNU General Public License v3.0
14 stars 12 forks source link

"Don't show again"-checkbox in Info dialog #227

Closed johanlahti closed 8 years ago

johanlahti commented 8 years ago

Excellent suggestion by @peterahlstrom to add an expiration date to the localStorage (like for cookies in general) so that the dontShowAgain checkbox expires after a certain date (e.g. 30 days). To this I will also add a global expiry date option dateLastUpdated which will make all dontShowAgain variables obsolete if they were registered before this date. Thus, even better than simply a cookie with an expiration date.

peterahlstrom commented 8 years ago

:thumbsup:

johanlahti commented 8 years ago

Ready for test (I'm closing).