summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-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]]);
}
})