Always do the ajax session check
This commit is contained in:
@@ -131,7 +131,7 @@ var Kanboard = (function() {
|
|||||||
// Check session and redirect to the login page if not logged
|
// Check session and redirect to the login page if not logged
|
||||||
CheckSession: function() {
|
CheckSession: function() {
|
||||||
|
|
||||||
if (Kanboard.IsVisible() && ! $(".form-login").length) {
|
if (! $(".form-login").length) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
cache: false,
|
cache: false,
|
||||||
url: $("body").data("status-url"),
|
url: $("body").data("status-url"),
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ var Kanboard = (function() {
|
|||||||
// Check session and redirect to the login page if not logged
|
// Check session and redirect to the login page if not logged
|
||||||
CheckSession: function() {
|
CheckSession: function() {
|
||||||
|
|
||||||
if (Kanboard.IsVisible() && ! $(".form-login").length) {
|
if (! $(".form-login").length) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
cache: false,
|
cache: false,
|
||||||
url: $("body").data("status-url"),
|
url: $("body").data("status-url"),
|
||||||
|
|||||||
Reference in New Issue
Block a user