Always do the ajax session check

This commit is contained in:
Frédéric Guillot 2014-11-29 17:31:26 -05:00
parent e72327d4b1
commit 54e31c8128
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ var Kanboard = (function() {
// Check session and redirect to the login page if not logged
CheckSession: function() {
if (Kanboard.IsVisible() && ! $(".form-login").length) {
if (! $(".form-login").length) {
$.ajax({
cache: false,
url: $("body").data("status-url"),

View File

@ -116,7 +116,7 @@ var Kanboard = (function() {
// Check session and redirect to the login page if not logged
CheckSession: function() {
if (Kanboard.IsVisible() && ! $(".form-login").length) {
if (! $(".form-login").length) {
$.ajax({
cache: false,
url: $("body").data("status-url"),