diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-12 14:25:02 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-12 14:25:02 +0300 |
| commit | b9ce8af9a2bfe3ca8094024d187e0b61ee5e815c (patch) | |
| tree | a305b07fa7452dd9f2974422a2f24776495c821e /client/button.js | |
| parent | 4d89c3c640218f032b749dbf7ae0d36ba3588de4 (diff) | |
About screen
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 20 |
1 files changed, 1 insertions, 19 deletions
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('<div style="display:none;"><iframe src="https://instagram.com/accounts/logout"></iframe></div>'); - Meteor.logout(); - _.delay(function () { - Router.go('login'); - }, 500); - } -}) +}); Accounts.onLogin(function() { Meteor.call('getInstagramProfilePhoto', function(error, res) { |
