Sha256: 32217383698557ac553aa5688c681c440bb8ded8d07e6b0d8d09075c12c82b3b
Contents?: true
Size: 847 Bytes
Versions: 116
Compression:
Stored size: 847 Bytes
Contents
(function () { 'use strict'; var $initiativeVotesCount = $('#initiative-<%= current_initiative.id %>-progress-bar'), userIdentitiesDialog = $('#user-identities'), refreshUrl; $initiativeVotesCount.html('<%= j(render partial: "decidim/initiatives/initiatives/progress_bar", 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
116 entries across 58 versions & 1 rubygems