fix: slo event click capture
This commit is contained in:
parent
b073c80ad7
commit
6b9a0b1b5c
|
@ -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);
|
||||
|
|
Reference in New Issue