Permalink
Browse files

remove automatic redirect on 401 responses for periodical ajax calls

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...
1 parent 7b533ab commit 04ae828aefb0b4f07b6e45f20df04e0a13cd6891 @kroepke kroepke committed Mar 11, 2014
Showing with 0 additions and 7 deletions.
  1. +0 −7 public/javascripts/periodicals.js
@@ -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) {

0 comments on commit 04ae828

Please sign in to comment.