Files
grecia/app/assets/javascripts/votes.js.coffee
2016-02-04 10:40:13 +01:00

19 lines
560 B
CoffeeScript

App.Votes =
hoverize: (votes) ->
$(votes).hover ->
$("div.anonymous-votes", votes).show();
$("div.organizations-votes", votes).show();
$("div.not-logged", votes).show();
$("div.logged", votes).hide();
, ->
$("div.anonymous-votes", votes).hide();
$("div.organizations-votes", votes).hide();
$("div.not-logged", votes).hide();
$("div.logged", votes).show();
initialize: ->
App.Votes.hoverize votes for votes in $("div.votes")
App.Votes.hoverize votes for votes in $("div.supports")
false