Sha256: a9c77d02e185b2373810ad83e83f39f9210236ae3254f6150e284b8ac51d65c4
Contents?: true
Size: 845 Bytes
Versions: 19
Compression:
Stored size: 845 Bytes
Contents
(function () { 'use strict'; var $initiativeVotesCount = $('#initiative-<%= current_initiative.id %>-votes-count'), userIdentitiesDialog = $('#user-identities'), refreshUrl; $initiativeVotesCount.html('<%= j(render partial: "decidim/initiatives/initiatives/votes_count", locals: { initiative: current_initiative }) %>'); // Update the identities dialog, if exists. if (userIdentitiesDialog.length) { refreshUrl = userIdentitiesDialog.data('refresh-url'); $.ajax(refreshUrl).done(function(response){ userIdentitiesDialog.html(response); }); } else { var $initiativeVoteButton = $('#initiative-<%= current_initiative.id %>-vote-cabin'); $initiativeVoteButton.html('<%= j(render partial: "decidim/initiatives/initiatives/vote_cabin", locals: { initiative: current_initiative }) %>'); } }());
Version data entries
19 entries across 19 versions & 1 rubygems