Permalink
Browse files

Error handler needs to define params.

  • Loading branch information...
1 parent 05d2a41 commit beeb3f6dc11b63738e0440b9d4a35890f43dd170 Rocky Meza committed with defunkt Aug 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.pjax.js
View
@@ -187,7 +187,7 @@ pjax.defaults = {
this.trigger('start.pjax', [xhr, options])
xhr.setRequestHeader('X-PJAX', 'true')
},
- error: function(){
+ error: function(xhr, textStatus, errorThrown){
if ( textStatus !== 'abort' )
window.location = options.url
},

0 comments on commit beeb3f6

Please sign in to comment.