From b9ce8af9a2bfe3ca8094024d187e0b61ee5e815c Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 12 Jul 2015 14:25:02 +0300 Subject: About screen --- client/button.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index b957016..9e3e834 100644 --- a/client/button.js +++ b/client/button.js @@ -287,25 +287,7 @@ Template.photo.helpers({ proxy: function (url) { return url.replace('https://scontent.cdninstagram.com', '/imgproxy?url='); } -}) - -Template.about.events({ - 'click button.start-over': function (event) { - if (Meteor.userId()) { - Router.go('dates'); - } - else { - Router.go('login'); - } - }, - 'click button.logout': function (event) { - $('body').append('
'); - Meteor.logout(); - _.delay(function () { - Router.go('login'); - }, 500); - } -}) +}); Accounts.onLogin(function() { Meteor.call('getInstagramProfilePhoto', function(error, res) { -- cgit v1.3.1