Remove duplication in comments votes component

We're also simplifying the code a bit by removing the
`participation-allowed` HTML class, which wasn't used in any other votes
component.
This commit is contained in:
Javi Martín
2021-09-30 22:44:16 +02:00
parent 053ec31df6
commit f11fd2b13e
3 changed files with 25 additions and 66 deletions

View File

@@ -5,11 +5,9 @@
$(document).on({
"mouseenter focus": function() {
$("div.participation-not-allowed", this).show();
$("div.participation-allowed", this).hide();
},
mouseleave: function() {
$("div.participation-not-allowed", this).hide();
$("div.participation-allowed", this).show();
}
}, votes);
},