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 +++----- client/colors.less | 7 ++++--- client/templates/photos.html | 1 - 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'client') 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; } }) diff --git a/client/colors.less b/client/colors.less index 968ef7d..f92f758 100644 --- a/client/colors.less +++ b/client/colors.less @@ -299,14 +299,15 @@ body { } } div.share { - margin-left: 70px; + margin-left: 40px; width: 260px; button { display: block; font-size: 2.8em; font-weight: bold; - margin-top: 10px; - padding: 3px 3px; + line-height: 1.3em; + margin-bottom: 14px; + padding: 0px 3px; color: black; background-color: white; border: 0px; diff --git a/client/templates/photos.html b/client/templates/photos.html index 2b9cfef..2e176e4 100644 --- a/client/templates/photos.html +++ b/client/templates/photos.html @@ -54,7 +54,6 @@ -- cgit v1.3.1