Skip to content

Commit

Permalink
Don't trigger pjax error handler on abort
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinwahl authored and defunkt committed Aug 24, 2011
1 parent cee648f commit 05d2a41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ pjax.defaults = {
xhr.setRequestHeader('X-PJAX', 'true')
},
error: function(){
window.location = options.url
if ( textStatus !== 'abort' )
window.location = options.url
},
complete: function(){
this.trigger('end.pjax', [xhr, options])
Expand Down

0 comments on commit 05d2a41

Please sign in to comment.