From 69a1fa624dc04f30b3f5f8c734af6964ab50d23e Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 6 Jul 2015 15:30:53 +0300 Subject: Add header bar --- client/button.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index 3670c0e..66181f3 100644 --- a/client/button.js +++ b/client/button.js @@ -196,6 +196,18 @@ Template.photos.events({ animate2(); return false; }, + 'click button.share-instagram': function (event) { + window.print(); + }, + 'click button.share-facebook': function (event) { + window.print(); + }, + 'click button.share-save': function (event) { + window.print(); + }, + 'click button.share-print': function (event) { + window.print(); + }, 'click button.logout': function (event) { $('body').append('
'); Meteor.logout(); @@ -250,6 +262,10 @@ Template.about.events({ }) Accounts.onLogin(function() { + Meteor.call('getInstagramProfilePhoto', function(error, res) { + console.log(res); + $('img.profile').attr('src', res); + }); if (Router.current().route.getName() == 'login') { Router.go('dates'); } -- cgit v1.3.1