Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
remove automatic redirect on 401 responses for periodical ajax calls
Browse files Browse the repository at this point in the history
this change will now no longer redirect on timed out sessions, but also won't spuriously redirect on backend timeouts
explicit session timeouts will need some api client changes for cleaner exception handling

fixes #695
  • Loading branch information
kroepke committed Mar 11, 2014
1 parent 7b533ab commit 04ae828
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions public/javascripts/periodicals.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ $(window).focus(function(){


$(document).ready(function() {
$.ajaxSetup({
statusCode: {
401: function() {
window.location.href = "/"; // TODO use router!
}
}
});
// Total event counts;
(function updateTotalEvents() {
if ($(".total-events").length > 0) {
Expand Down

0 comments on commit 04ae828

Please sign in to comment.