Mercurial > hg > bitsyauth
comparison bitsyauth/js/persona.js @ 50:5517ac16c9fb
comment+whitespace
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 30 Dec 2013 22:55:29 -0800 |
parents | 8358634e3d75 |
children |
comparison
equal
deleted
inserted
replaced
49:8358634e3d75 | 50:5517ac16c9fb |
---|---|
32 } | 32 } |
33 }); | 33 }); |
34 } | 34 } |
35 }); | 35 }); |
36 | 36 |
37 // | 37 // add click handlers to signin, signout buttons |
38 var signinLink = document.getElementById('signin'); | 38 var signinLink = document.getElementById('signin'); |
39 if (signinLink) { | 39 if (signinLink) { |
40 signinLink.onclick = function() { | 40 signinLink.onclick = function() { |
41 navigator.id.request(); | 41 navigator.id.request(); |
42 }; | 42 }; |
43 } | 43 } |
44 | |
45 var signoutLink = document.getElementById('signout'); | 44 var signoutLink = document.getElementById('signout'); |
46 if (signoutLink) { | 45 if (signoutLink) { |
47 signoutLink.onclick = function() { navigator.id.logout(); }; | 46 signoutLink.onclick = function() { |
47 navigator.id.logout(); | |
48 }; | |
48 } | 49 } |
49 } | 50 } |