From 337a4c54d16f5d76f4703fae4065516bc7f4b648 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 13 Jul 2015 12:54:32 +0300 Subject: Share button cleanup --- client/button.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index 2cdac14..d67bbb6 100644 --- a/client/button.js +++ b/client/button.js @@ -225,13 +225,10 @@ Template.photos.events({ return false; }, 'click button.share-instagram': function (event) { - window.print(); + return false; }, 'click button.share-facebook': function (event) { - window.print(); - }, - 'click button.share-save': function (event) { - window.print(); + return false; }, 'click button.share-print': function (event) { var date = Session.get('date'); @@ -269,6 +266,7 @@ Template.photos.events({ printStr += bin2hex([1,1,1].concat(code)); // add three high bits for padding Meteor.call('printFinalImage', printStr); + return false; } }) -- cgit v1.3.1