Files
grecia/app/assets/javascripts/allow_participation.js
Javi Martín ec5af1f1bc Remove unnecessary return statements
These statements were automatically added by CoffeeScript.

I'm only removing the obvious cases; there might be more cases where the
`return` statement isn't necessary.
2019-09-11 14:03:24 +02:00

19 lines
512 B
JavaScript

(function() {
"use strict";
App.AllowParticipation = {
initialize: function() {
$(document).on({
"mouseenter focus": function() {
$(this).find(".js-participation-not-allowed").show();
$(this).find(".js-participation-allowed").hide();
},
mouseleave: function() {
$(this).find(".js-participation-not-allowed").hide();
$(this).find(".js-participation-allowed").show();
}
}, ".js-participation");
}
};
}).call(this);