summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-07 18:00:25 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-07 18:00:25 +0300
commitc079c5914a1980d656ef96eca5fa775aebaab648 (patch)
tree4e9905ae21403ed3b9ba75a8be6bf08c81e80741 /client/button.js
parent288893999c04a2cbe9adbc61ae7d753913bdb07e (diff)
Add printing stubs
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/button.js b/client/button.js
index f483e8e..bc1f870 100644
--- a/client/button.js
+++ b/client/button.js
@@ -157,7 +157,10 @@ Template.dates.events({
var photos = _.sortBy(results.data.data, function(p) {
return p.created_time;
});
+
+ Session.set('date', { month: month, year: year });
Session.set('photos', photos);
+
$('form.dates div.error').hide();
$('form.dates button.dates').show();
}
@@ -214,10 +217,11 @@ Template.photos.events({
window.print();
},
'click button.share-save': function (event) {
-
+ window.print();
},
'click button.share-print': function (event) {
- window.print();
+ var date = Session.get('date');
+ Meteor.call('printFinalImage', date.month, date.year, [[1,2,3], [4,5,6]]);
}
})