Pad_cookie.js to have isCookiesEnabled() cause wasNoCookie() is also true when User visits first time.
parent
582e2c3819
commit
c959cdbaa7
|
@ -453,7 +453,7 @@ var pad = {
|
|||
// This will check if the prefs-cookie is set.
|
||||
// Otherwise it shows up a message to the user.
|
||||
padcookie.init();
|
||||
if (padcookie.wasNoCookie())
|
||||
if (!padcookie.isCookiesEnabled())
|
||||
{
|
||||
$('#loading').hide();
|
||||
$('#noCookie').show();
|
||||
|
|
|
@ -124,6 +124,9 @@ var padcookie = (function()
|
|||
{
|
||||
return wasNoCookie;
|
||||
},
|
||||
isCookiesEnabled: function() {
|
||||
return !!getRawCookie();
|
||||
},
|
||||
getPref: function(prefName)
|
||||
{
|
||||
return cookieData[prefName];
|
||||
|
|
Loading…
Reference in New Issue