This way it's consistent with what we get when there are no comments. It only appears once on the page so it isn't overwhelming.
20 lines
474 B
JavaScript
20 lines
474 B
JavaScript
(function() {
|
|
"use strict";
|
|
App.Votes = {
|
|
hoverize: function(votes) {
|
|
$(document).on({
|
|
"mouseenter focus": function() {
|
|
$("div.participation-not-allowed", this).show();
|
|
},
|
|
mouseleave: function() {
|
|
$("div.participation-not-allowed", this).hide();
|
|
}
|
|
}, votes);
|
|
},
|
|
initialize: function() {
|
|
App.Votes.hoverize("div.votes");
|
|
App.Votes.hoverize("div.supports");
|
|
}
|
|
};
|
|
}).call(this);
|