Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't trigger pjax error handler on abort

  • Loading branch information...
commit 05d2a415d8a67d861fe81576174e42c631d931da 1 parent cee648f
Gavin Wahl gavinwahl authored defunkt committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  jquery.pjax.js
3  jquery.pjax.js
View
@@ -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])
Please sign in to comment.
Something went wrong with that request. Please try again.