summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-13 15:46:40 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-13 15:46:40 +0300
commit21eb0e3b59966a469cd2b9f09722642bf1b8c661 (patch)
treee969cc5368e16febfdca79a3c8ef139522662fd8 /client/button.js
parent9ae25440f70d97ce33dc2b139b381a098f761349 (diff)
Switch to rgbquant
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()
+ })
}
})