Sha256: 6d4c4c22f7b7f21116821d56457e15de72a99ccc4f44e6d1c2c8190ef9694e55

Contents?: true

Size: 540 Bytes

Versions: 56

Compression:

Stored size: 540 Bytes

Contents

// We have just 'created' a Letter Completion resource on the server
// (in other words we have updated the letter state to Completed!) and now we
// need to refresh the view the user was on. This could be any page
// were the letter is listed or displayed. So look for a URL stored
// somewhere on the page in a data attribute and if found make an AJAX call
// which will probably reload e.g. a letters table or something like that.
<%# url = $(".reveal-modal").data("refresh-url");
if(url) { $.getScript(url); } %>
location.reload(true);

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
renalware-core-2.0.127 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.126 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.125 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.124 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.123 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.121 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.120 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.119 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.118 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.117 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.116 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.115 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.113 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.112 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.111 app/views/renalware/letters/completed_batches/create.js.erb
renalware-core-2.0.110 app/views/renalware/letters/completed_batches/create.js.erb