Moderate legislation proposals - added a controller for moderation/legislation - updated view to appropriate link + added route - added a spec - Feature test - test for faded - javascripts for visual effects
13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
(function() {
|
|
"use strict";
|
|
App.ModeratorLegislationProposals = {
|
|
add_class_faded: function(id) {
|
|
$("#" + id).addClass("faded");
|
|
$("#comments").addClass("faded");
|
|
},
|
|
hide_moderator_actions: function(id) {
|
|
$("#" + id + " .js-moderator-proposals-actions:first").hide();
|
|
}
|
|
};
|
|
}).call(this);
|