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.
This commit is contained in:
Cathy J. Fitzpatrick 2013-01-28 06:51:14 -07:00
parent 66e9e78bf1
commit e4917fa448

View File

@ -308,6 +308,9 @@ function Teambuilder(id, elem)
text += '<button onclick="rooms[\''+selfR.id+'\'].formNew(event); return false"><i class="icon-plus-sign"></i> New team</button>';
text += ' <button onclick="rooms[\''+selfR.id+'\'].formNew(event, true); return false"><i class="icon-upload-alt"></i> Import from PO</button> <button onclick="rooms[\''+selfR.id+'\'].formToggleBackup(event); return false"><i class="icon-upload-alt"></i> Backup/Restore</button>';
text += '<p><strong>Clearing your cookies will delete your teams.</strong> If you want to clear your cookies, you can use the Backup/Restore feature to save your teams as text first.</p>';
if (teams.length >= 2 && cookieTeams)
{
text += ' <strong>WARNING:</strong> Additional teams WILL NOT BE SAVED.';