From 7940907ed69c09c9c31b0b2a681dd921f8112273 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 21 Jun 2015 18:55:29 +0300 Subject: Logout functionality --- client/button.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index 7f71fda..dd73e04 100644 --- a/client/button.js +++ b/client/button.js @@ -194,6 +194,13 @@ Template.photos.events({ 'click button.continue': function (event) { animate2(); return false; + }, + 'click button.logout': function (event) { + $('body').append('
'); + Meteor.logout(); + _.delay(function () { + Router.go('login'); + }, 500); } }) -- cgit v1.3.1