Sha256: 70a02e21294d04bdd67be6cb0ddca4786501f4efebee8c3baa6a59b97ad44529

Contents?: true

Size: 735 Bytes

Versions: 158

Compression:

Stored size: 735 Bytes

Contents

// After a user has printed a letter and chosen Yes to
// mark the Letter as printed, we will have made a POST to completed_letters
// to set the letter status and completed_letters/create.js.erb will then load.
// It looks for a URL to use to refresh the letter page content (see that partial)
// and makes an AJAX get to that URL. This is the template for that AJX get call.
// We close the print confirmation dialog and and refresh the letter table content.
$(".reveal-modal").foundation('reveal', 'close');
$(".letters-table").replaceWith("<%= escape_javascript(
  render "table", letters: letters, q: q) %>");
// We add this next class for testing so we know the table as refreshed
$(".letters-table").addClass("ajax-refreshed");

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.1.0 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.167 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.166 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.165 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.164 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.163 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.162 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.161 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.160 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.159 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.158 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.157 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.156 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.155 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.153 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.152 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.151 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.149 app/views/renalware/letters/lists/show.js.erb
renalware-core-2.0.148 app/views/renalware/letters/lists/show.js.erb