Sha256: 4e6b828361c10020bbd069f7503fbf6ab9731f1b180a918f664f4467dbae58d3

Contents?: true

Size: 1.26 KB

Versions: 35

Compression:

Stored size: 1.26 KB

Contents

<% if flash.now[:error].present? %>
  $("#js-form-recategorize-proposals #category_id").addClass("is-invalid-input")
  $("<%= escape_javascript(render partial: %q{js-callout}, locals: { css: %q{alert}, text: flash.now[:error] }) %>").appendTo(".callout-wrapper");
<% end %>

<% if flash.now[:alert].present? %>
  $("#js-form-recategorize-proposals #category_id").removeClass("is-invalid-input")
  $("<%= escape_javascript(render partial: %q{js-callout}, locals: { css: %q{warning}, text: flash.now[:alert] }) %>").appendTo(".callout-wrapper");
<% end %>

<% if flash.now[:notice].present? %>
  $("<%= escape_javascript(render partial: %q{js-callout}, locals: { css: %q{success}, text: flash.now[:notice] }) %>").appendTo(".callout-wrapper");

  <% proposal_ids.each do |id| %>
    $(".table-list [data-id='<%= id %>']")
      .replaceWith("<%= escape_javascript(render partial: %q{proposal-tr}, locals: { proposal: proposal_find(id) }) %>");
  <% end %>

  $("#js-form-recategorize-proposals #category_id").removeClass("is-invalid-input")
  $(".js-check-all").prop('checked', false);
  $(".js-check-all-proposal").prop('checked', false);
  window.hideBulkActionsButton();
  window.hideBulkActionForms();
  window.showOtherActionsButtons();
  window.selectedProposalsCountUpdate();
<% end %>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
decidim-proposals-0.26.10 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.9 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.8 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.7 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.5 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.4 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.3 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.2 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.1 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.0 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.0.rc2 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.26.0.rc1 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.2 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.1 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.0 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.0.rc4 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.0.rc3 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.0.rc2 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.25.0.rc1 app/views/decidim/proposals/admin/proposals/update_category.js.erb
decidim-proposals-0.24.3 app/views/decidim/proposals/admin/proposals/update_category.js.erb