fix: slo event click capture

This commit is contained in:
Josue Kouka 2017-10-18 15:05:34 +02:00
parent b073c80ad7
commit 6b9a0b1b5c
1 changed files with 1 additions and 2 deletions

View File

@ -1,12 +1,11 @@
$(function(){
if (typeof(mandaye_logout_locator) === 'undefined')
return false;
$(mandaye_logout_locator).click(function(event){
$(mandaye_logout_locator).click(function(){
// if user is not authenticated on mandaye, don't launch slo
if ($('#mandaye-logon-url').find('a').attr('href') !== '/_mandaye/logout/'){
return false;
}
$(mandaye_logout_locator).click(function(){
setTimeout(function(){
window.location.href = '/_mandaye/logout/';
}, 300);