Thomas B.
2012-10-31 a2c586093e1b27ca14c2fb60a1c7f535444695d3
Merge pull request #41 from linagora/release-0.8

Grancefully handle SSO redirects on Ajax requests
1 files modified
5 ■■■■■ changed files
program/js/app.js 5 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -6141,6 +6141,11 @@
    else if (request.status == 0 && status != 'abort')
      this.display_message(this.get_label('servererror') + ' (No connection)', 'error');
    // redirect to url specified in location header if not empty
    var location_url = request.getResponseHeader("Location");
    if (location_url != '')
      this.redirect(location_url);
    // re-send keep-alive requests after 30 seconds
    if (action == 'keep-alive')
      setTimeout(function(){ ref.keep_alive(); ref.start_keepalive(); }, 30000);