Skip to content
Snippets Groups Projects
Commit d9d58544 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Make sure logout is only called once.

* Stop propagation of the event so that the event is not captured higher up.
* If logout fails, print an error message

close #666.
issue #630.
parent 3aca0bd0
No related branches found
No related tags found
No related merge requests found
......@@ -70,12 +70,13 @@ $(function() {
$(window).bind('resize', function() { $('#vAlign').css({'height' : $(window).height() }); }).trigger('resize');
}
$(".signOut").click(function(event) {
$("a.signOut").click(function(event) {
event.preventDefault();
event.stopPropagation();
user.logoutUser(function() {
document.location = "/";
});
}, pageHelpers.getFailure(bid.Errors.logout));
});
$(".display_always,.display_auth,.display_nonauth").hide();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment