Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 04ae828aefb0b4f07b6e45f20df04e0a13cd6891 1 parent 7b533ab
@kroepke kroepke authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 public/javascripts/periodicals.js
View
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.