Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #21 from basho/fix-timeout-issue

fixed early timeouts for some clients
  • Loading branch information...
commit 2d6d22c67835742bd7794f3dfaf700bb5dd95bf4 2 parents 2638a66 + dc8e71b
@cmeiklejohn cmeiklejohn authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 priv/admin/js/pjax.js
View
10 priv/admin/js/pjax.js
@@ -1,9 +1,17 @@
// jquery.pjax.js
// copyright chris wanstrath
// https://github.com/defunkt/jquery-pjax
+// Modified by Basho Technologies to fix a timeout issue for some clients.
(function($){
+// The following variable is in milliseconds.
+// It controls the ajax timeouts for page fetching attempts.
+// The pjax default was 650 but this is too early in some use cases.
+// We're setting it high here to account for most foreseeable circumstances.
+// - Basho
+var ajaxTimeout = 10000;
+
// When called on a link, fetches the href with ajax into the
// container specified as the first parameter or with the data-pjax
// attribute on the link itself.
@@ -180,7 +188,7 @@ var pjax = $.pjax = function( options ) {
pjax.defaults = {
- timeout: 650,
+ timeout: ajaxTimeout, // was previously 650 - Basho
push: true,
replace: false,
// We want the browser to maintain two separate internal caches: one for
Please sign in to comment.
Something went wrong with that request. Please try again.