X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=auth%2Fstatic%2Fjs%2Flogout.js;h=c417bb597a302ce545a834d1dfc3c1cfe66df8aa;hp=1e140a9007aabaa27723c9c372821cdd5639d06c;hb=ccbd6e9fc2ff9e6683e38d13220ffc9dccfb20ea;hpb=0d118a5f600b06616c2841e92642a303d8785269 diff --git a/auth/static/js/logout.js b/auth/static/js/logout.js index 1e140a90..c417bb59 100644 --- a/auth/static/js/logout.js +++ b/auth/static/js/logout.js @@ -1,7 +1,7 @@ /* retrieve username from the button that is clicked, the one named 'logout' and that is expected to have the 'username' attribute */ function logout () { - var username=$(this).attr('username'); + var username=$(this).data('username'); var msg="Are you sure you want to logout as " + username + " ?"; /* redirect to /logout, see urls.py */ if (confirm(msg)) window.location="/logout/";