Permalink
Browse files

Better way to hide and show add/rm favs.

--HG--
extra : rebase_source : d1a92b10980d85efbd8e0ff1f90b903f1794d3eb
  • Loading branch information...
1 parent 10c995e commit a32fa3dc2ba928f5e87b0d84614228a10360a81d @nanaya committed Nov 11, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/assets/javascripts/vote.js
@@ -114,11 +114,11 @@
}
}
if (vote === FAVORITE) {
- add.css('display', 'none');
- rm.css('display', 'list-item');
+ add.hide();
+ rm.show();
} else {
- add.css('display', 'list-item');
- rm.css('display', 'none');
+ add.show();
+ rm.hide();
}
this.post_score.text(score);
},

0 comments on commit a32fa3d

Please sign in to comment.