Upgrade to ECMAScript 6
[plack-app-gruntmaster.git] / js / 95-login.js
index 3173895e5d03ff386e1cfe1d5bad4393cdb86100..bf16d31f1f2e166a8b5e8c3e0ce501c81a39e7fd 100644 (file)
@@ -3,10 +3,10 @@ $(function(){
        var login = document.createElement('div');
        login.innerHTML = '<a role="button" id="login" class="show">Log in</a>';
        sidebar.insertBefore(login, sidebar.firstChild);
-       $('#login').on('click', function(e) {
+       $('#login').on('click', e => {
                var xhr = new XMLHttpRequest();
                xhr.open('GET', '/login');
-               xhr.onload = function () {
+               xhr.onload = () => {
                        if(this.status != 200)
                                return;
                        var username = this.responseText;
This page took 0.010138 seconds and 4 git commands to generate.