Sha256: 3fb4a1857280e9e3b233eb90a39df92a0d9a642dbadadf884f4dc4f3b01528f7
Contents?: true
Size: 458 Bytes
Versions: 20
Compression:
Stored size: 458 Bytes
Contents
$(document).on("ajax:error", function(event) { var xhr = event.detail[2]; switch(xhr.status) { // For 401 Unathorised responses, for example trying to making a // js request after a session timeout, reloading the current page // will redirect the user to the login page. case 401: location.reload(); break; case 500: alert("Your request has unexpectedly failed (" + xhr.statusText + "). Please try again."); } });
Version data entries
20 entries across 20 versions & 1 rubygems