remove useless console.log statements (#14324)

This commit is contained in:
Josue Kouka 2016-12-15 15:36:55 +01:00
parent 85ce8c5778
commit e88d8c2d53
2 changed files with 4 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/* This scripts force the redirection to the homepage
* if current pathname == <mandaye_redirect_url> and the current user is
* if current pathname == <mandaye_redirect_url> and the current user is
* already associated and currently connected
*/
@ -19,12 +19,10 @@ $(function(){
function conditionsOk(){
if (!urlExists('#manndaye-logon-url', '/_mandaye/accounts/mellon/logout')){
console.log('user not connected');
return false;
}
if(!urlExists('#mandaye-association-url', '/_mandaye/dissociate')){
console.log('user not associated');
return false;
}
@ -32,22 +30,20 @@ $(function(){
*/
if(mandaye_redirect_url.length){
if (window.location.href.indexOf(mandaye_redirect_url) < 1){
console.log('not on login page');
return false;
}
}
/* Forces mandayejs authentication through a specific locator
*/
if(mandaye_redirect_locator.length){
if (!$(mandaye_redirect_locator).length){
console.log('locator not found');
return false;
return false;
}
}
return true;
}
if(conditionsOk())
window.location = mandaye_post_login ;

View File

@ -2,7 +2,6 @@ $(function(){
if (typeof(mandaye_logout_locator) === 'undefined')
return false;
$(mandaye_logout_locator).click(function(){
console.log("launching slo");
window.location = '/_mandaye/logout/';
return false;
});