Sha256: c4935f10d070cc5b1f395b9d626af0ca2d7491dcaf66db9353ec9ead43af4523
Contents?: true
Size: 931 Bytes
Versions: 46
Compression:
Stored size: 931 Bytes
Contents
<% if Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.empty? %> update_main_page_button(); <% end %> update_identities_rows(); function update_main_page_button() { var $endorsementButton = $('#resource-<%= resource.id %>-endorsement-button'); morphdom($endorsementButton[0], '<%= j(endorsement_buttons_cell(resource).render_user_identity_endorse_button).strip.html_safe %>'); } function update_identities_rows() { <% fully_endorsed= fully_endorsed?(resource, current_user) %> var $endorsementsRowCount = $('#resource-<%= resource.id %>-endorsements-count'); morphdom($endorsementsRowCount[0], '<%= j(endorsement_buttons_cell(resource).render_endorsements_count).strip.html_safe %>'); var $endorsementsRowButton = $($('#select-identity-button')[0]); <% if fully_endorsed %> $endorsementsRowButton.addClass('active') <% else %> $endorsementsRowButton.removeClass('active') <% end %> }
Version data entries
46 entries across 46 versions & 1 rubygems