Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d54432e7

Přidáno uživatelem Ondřej Drtina před téměř 4 roky(ů)

#8643 - funguje login i logout, odstraněno testovací tlačítko pro logout

Zobrazit rozdíly:

application/view/modals/loginModal.html
44 44
        xhr.send(data);
45 45
    }
46 46

  
47
    function login () {
47
    function login(){
48 48
        var data = new FormData();
49 49
        data.append("username", document.getElementById('nick').value);
50 50
        data.append("password", document.getElementById('password').value);
......
54 54
            if(this.response == 'Incorrect username and/or password!'){ //login was not successful, show modal
55 55
                $("#invalidlogin-modal").modal("show");
56 56
            }else{ //login was successful, refresh page to apply changes in visible items
57
               window.location.href = window.location.href;
57
                location.reload();
58 58
            }
59 59
        };
60 60
        xhr.send(data);

Také k dispozici: Unified diff