Sha256: 81dda44772d50f25eb38f77960bde96727edad40e40cb900f5b1579f03579555
Contents?: true
Size: 510 Bytes
Versions: 158
Compression:
Stored size: 510 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); }
Version data entries
158 entries across 158 versions & 1 rubygems