Sha256: 04c47cfc5fafb7bf7e2242028bd02f7d15a4a48f64761b883c95ec37fe31db67
Contents?: true
Size: 1.25 KB
Versions: 7
Compression:
Stored size: 1.25 KB
Contents
(function () { 'use strict'; $("#delegations-modal").foundation("close"); $("#delegations-modal").remove(); $('#question-vote-modal').foundation("close"); $('#question-vote-confirm-modal').foundation("close"); $('#question-vote-modal, #question-vote-confirm-modal').remove() var voteButton = $('#question-<%= current_question.id %>-vote-button'); voteButton.html('<%= j(render partial: "decidim/consultations/questions/vote_button", locals: { question: current_question }) %>'); $('#question-vote-modal').foundation(); $('#question-vote-confirm-modal').foundation(); <% if signed_in? && current_question.voted_by?(current_user) %> $('#vote-result-callout').addClass('warning').removeClass('hide danger'); $('#vote-result-callout .callout-title').text($('#vote-result-callout').data('title-ok')); $('#vote-result-callout .callout-message').text($('#vote-result-callout').data('message-ok')); $('#confirm-vote-form-loader').addClass('hide'); $('#confirm-vote-form').removeClass('hide'); <% end %> const delegationsButton = $("#delegations-button"), delegationDialog = $("#delegations-modal"); delegationDialog.foundation(); delegationsButton.click(function () { delegationDialog.foundation("open"); }); }());
Version data entries
7 entries across 7 versions & 1 rubygems