Sha256: 4fc45ac511d42ce4c902d232113d39cf2269a855b6d06783ff6d70561169105c

Contents?: true

Size: 512 Bytes

Versions: 21

Compression:

Stored size: 512 Bytes

Contents

(function () {
  'use strict';

  $('#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();
}());

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
decidim-consultations-0.12.0.pre app/views/decidim/consultations/question_votes/update_vote_button.js.erb