From 21eb0e3b59966a469cd2b9f09722642bf1b8c661 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 13 Jun 2015 15:46:40 +0300 Subject: Switch to rgbquant --- client/button.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/button.js') 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() + }) } }) -- cgit v1.3.1