Renames supports to allow_participation

This commit is contained in:
kikito
2016-12-22 20:23:48 +01:00
parent a73626d712
commit 688f52bb62
5 changed files with 18 additions and 18 deletions

View File

@@ -0,0 +1,12 @@
App.AllowParticipation =
initialize: ->
$(document).on {
'mouseenter focus': ->
$(this).find(".js-participation-not-allowed").show();
$(this).find(".js-participation-allowed").hide();
mouseleave: ->
$(this).find(".js-participation-not-allowed").hide();
$(this).find(".js-participation-allowed").show();
}, ".js-participation"
false

View File

@@ -36,7 +36,7 @@
//= require tags
//= require users
//= require votes
//= require supports
//= require allow_participation
//= require annotatable
//= require advanced_search
//= require registration_form
@@ -54,7 +54,7 @@ var initialize_modules = function() {
App.Comments.initialize();
App.Users.initialize();
App.Votes.initialize();
App.Supports.initialize();
App.AllowParticipation.initialize();
App.Tags.initialize();
App.Dropdown.initialize();
App.LocationChanger.initialize();

View File

@@ -1,12 +0,0 @@
App.Supports =
initialize: ->
$(document).on {
'mouseenter focus': ->
$(this).find(".js-supports-not-allowed").show();
$(this).find(".js-supports-allowed").hide();
mouseleave: ->
$(this).find(".js-supports-not-allowed").hide();
$(this).find(".js-supports-allowed").show();
}, ".js-supports"
false