Projet

Général

Profil

« Précédent | Suivant » 

Révision e88d8c2d

Ajouté par Josué Kouka il y a plus de 7 ans

remove useless console.log statements (#14324)

Voir les différences:

mandayejs/mandaye/static/force.redirect.js
1 1
/* This scripts force the redirection to the homepage
2
 * if current pathname == <mandaye_redirect_url> and the current user is 
2
 * if current pathname == <mandaye_redirect_url> and the current user is
3 3
 * already associated and currently connected
4 4
 */
5 5

  
......
19 19

  
20 20
    function conditionsOk(){
21 21
        if (!urlExists('#manndaye-logon-url', '/_mandaye/accounts/mellon/logout')){
22
            console.log('user not connected');
23 22
            return false;
24 23
        }
25 24

  
26 25
        if(!urlExists('#mandaye-association-url', '/_mandaye/dissociate')){
27
            console.log('user not associated');
28 26
            return false;
29 27
        }
30 28

  
......
32 30
         */
33 31
        if(mandaye_redirect_url.length){
34 32
            if (window.location.href.indexOf(mandaye_redirect_url) < 1){
35
                console.log('not on login page');
36 33
                return false;
37 34
            }
38
            
35

  
39 36
        }
40 37
        /* Forces mandayejs authentication through a specific locator
41 38
        */
42 39
        if(mandaye_redirect_locator.length){
43 40
            if (!$(mandaye_redirect_locator).length){
44
                console.log('locator not found');
45
                return false;            
41
                return false;
46 42
            }
47 43
        }
48 44
        return true;
49 45
    }
50
   
46

  
51 47
    if(conditionsOk())
52 48
        window.location = mandaye_post_login ;
53 49

  
mandayejs/mandaye/static/single.logout.js
2 2
    if (typeof(mandaye_logout_locator) === 'undefined')
3 3
        return false;
4 4
    $(mandaye_logout_locator).click(function(){
5
        console.log("launching slo");
6 5
        window.location = '/_mandaye/logout/';
7 6
        return false;
8 7
    });

Formats disponibles : Unified diff