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