From e4917fa4482a2d5bcbbbf0362bbbcea1468cc670 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Mon, 28 Jan 2013 06:51:14 -0700 Subject: [PATCH] Add warning about clearing cookies Teams are stored in localStorage. Most browsers appear to clear localStorage as part of clearing cookies. Very often, users inadvertently delete their teams when they clear their cookies. This message will not prevent all instances of this, but it will at least decrease the chance of it happening. --- js/teambuilder.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/teambuilder.js b/js/teambuilder.js index e338bca8e..98d3d50ce 100644 --- a/js/teambuilder.js +++ b/js/teambuilder.js @@ -308,6 +308,9 @@ function Teambuilder(id, elem) text += ''; text += ' '; + + text += '

Clearing your cookies will delete your teams. If you want to clear your cookies, you can use the Backup/Restore feature to save your teams as text first.

'; + if (teams.length >= 2 && cookieTeams) { text += ' WARNING: Additional teams WILL NOT BE SAVED.';