diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-21 18:55:29 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-21 18:55:29 +0300 |
| commit | 7940907ed69c09c9c31b0b2a681dd921f8112273 (patch) | |
| tree | 753f0d42df4ebd0b02f8d9a691f55ad8ad5c6f2a /client | |
| parent | fc62d96c5150450c9c4639e524d8c77fa6128964 (diff) | |
Logout functionality
Diffstat (limited to 'client')
| -rw-r--r-- | client/button.js | 7 |
1 files changed, 7 insertions, 0 deletions
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('<div style="display:none;"><iframe src="https://instagram.com/accounts/logout"></iframe></div>'); + Meteor.logout(); + _.delay(function () { + Router.go('login'); + }, 500); } }) |
