mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 18:06:15 -04:00
Notify user if cookies can't be created
This commit is contained in:
parent
a645aeef5c
commit
2307c6fbda
4 changed files with 18 additions and 0 deletions
|
@ -1086,6 +1086,10 @@ input[type=checkbox] {
|
|||
display:none;
|
||||
}
|
||||
|
||||
#nocookie{
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* gritter stuff */
|
||||
#gritter-notice-wrapper {
|
||||
position:fixed;
|
||||
|
|
|
@ -442,6 +442,16 @@ var pad = {
|
|||
if (typeof customStart == "function") customStart();
|
||||
getParams();
|
||||
handshake();
|
||||
|
||||
// To use etherpad you have to allow cookies.
|
||||
// This will check if the creation of a test-cookie has success.
|
||||
// Otherwise it shows up a message to the user.
|
||||
createCookie("test", "test");
|
||||
if (!readCookie("test"))
|
||||
{
|
||||
$('#loading').hide();
|
||||
$('#nocookie').show();
|
||||
}
|
||||
});
|
||||
},
|
||||
_afterHandshake: function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue