diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-21 10:49:14 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-21 10:49:14 +0300 |
| commit | 6b4620f2f9eba41679990c10eb4e2cc4430a8562 (patch) | |
| tree | 390e2a7def82ee90d7e92283b0355e24f9f44629 /client/button.js | |
| parent | e09b02ea1fe773f0ebf4059792f89db9ae743fa8 (diff) | |
One liner flicker fix
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/button.js b/client/button.js index c739001..8dd7db7 100644 --- a/client/button.js +++ b/client/button.js @@ -151,16 +151,16 @@ Template.dates.helpers({ Template.photos.events({ 'click button.pixelate': function (event) { _.each(Session.get('photos'), function(x) { - $('#img-'+x.id).hide() Effects.pixelate(x.id); - $('#canvas-'+x.id).show() + $('#img-'+x.id).hide(); + $('#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() + $('#img-'+x.id).hide(); + $('#canvas-'+x.id).show(); }) }, 'click button.average': function (event) { |
