mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
ux: Better ux for if cookies are disabled or not available.
This commit is contained in:
parent
a4713a8308
commit
0d51e71578
5 changed files with 30 additions and 23 deletions
|
@ -480,11 +480,6 @@ var pad = {
|
|||
// This will check if the prefs-cookie is set.
|
||||
// Otherwise it shows up a message to the user.
|
||||
padcookie.init();
|
||||
if (!padcookie.isCookiesEnabled())
|
||||
{
|
||||
$('#loading').hide();
|
||||
$('#noCookie').show();
|
||||
}
|
||||
});
|
||||
},
|
||||
_afterHandshake: function()
|
||||
|
|
|
@ -78,7 +78,12 @@ var padcookie = (function()
|
|||
|
||||
if ((!getRawCookie()) && (!alreadyWarnedAboutNoCookies))
|
||||
{
|
||||
alert("Warning: it appears that your browser does not have cookies enabled." + " EtherPad uses cookies to keep track of unique users for the purpose" + " of putting a quota on the number of active users. Using EtherPad without " + " cookies may fill up your server's user quota faster than expected.");
|
||||
$.gritter.add({
|
||||
title: "Error",
|
||||
text: html10n.get("pad.noCookie"),
|
||||
sticky: true,
|
||||
class_name: "error"
|
||||
});
|
||||
alreadyWarnedAboutNoCookies = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue