summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js7
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);
}
})