mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
Pad_cookie.js to have isCookiesEnabled() cause wasNoCookie() is also true when User visits first time.
This commit is contained in:
parent
582e2c3819
commit
c959cdbaa7
2 changed files with 4 additions and 1 deletions
|
@ -453,7 +453,7 @@ var pad = {
|
||||||
// This will check if the prefs-cookie is set.
|
// This will check if the prefs-cookie is set.
|
||||||
// Otherwise it shows up a message to the user.
|
// Otherwise it shows up a message to the user.
|
||||||
padcookie.init();
|
padcookie.init();
|
||||||
if (padcookie.wasNoCookie())
|
if (!padcookie.isCookiesEnabled())
|
||||||
{
|
{
|
||||||
$('#loading').hide();
|
$('#loading').hide();
|
||||||
$('#noCookie').show();
|
$('#noCookie').show();
|
||||||
|
|
|
@ -124,6 +124,9 @@ var padcookie = (function()
|
||||||
{
|
{
|
||||||
return wasNoCookie;
|
return wasNoCookie;
|
||||||
},
|
},
|
||||||
|
isCookiesEnabled: function() {
|
||||||
|
return !!getRawCookie();
|
||||||
|
},
|
||||||
getPref: function(prefName)
|
getPref: function(prefName)
|
||||||
{
|
{
|
||||||
return cookieData[prefName];
|
return cookieData[prefName];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue