summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index 2fabf31..786091d 100644
--- a/client/button.js
+++ b/client/button.js
@@ -47,6 +47,13 @@ Template.photos.events({
Effects.pixelate(x.id);
$('#canvas-'+x.id).show()
})
+ },
+ 'click button.color': function (event) {
+ _.each(Session.get('photos'), function(x) {
+ $('#img-'+x.id).hide()
+ Effects.colorize(x.id);
+ $('#canvas-'+x.id).show()
+ })
}
})