summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-06 15:30:53 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-06 15:30:53 +0300
commit69a1fa624dc04f30b3f5f8c734af6964ab50d23e (patch)
tree2062bb50edf4e9b7d4f819a67938e41a7faafc80 /client/button.js
parentfcaa14d0243adbfa602950a1ed3ac6b7ce35ae24 (diff)
Add header bar
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js16
1 files changed, 16 insertions, 0 deletions
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('<div style="display:none;"><iframe src="https://instagram.com/accounts/logout"></iframe></div>');
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');
}