Skip to content

Commit

Permalink
Upgrade pjax to 857b1d5
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 8, 2012
1 parent 7daf2f1 commit 23742e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vendor/assets/javascripts/jquery.pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ function pjax(options) {

var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options])
if (textStatus !== 'abort' && allowed)
window.location = container.url
window.location.replace(container.url)
}

options.success = function(data, status, xhr) {
var container = extractContainer(data, xhr, options)

if (!container.contents) {
window.location = container.url
window.location.replace(container.url)
return
}

Expand Down Expand Up @@ -381,7 +381,7 @@ function onPjaxPopstate(event) {
// scroll position.
container[0].offsetHeight
} else {
window.location = location.href
window.location.replace(location.href)
}
}
}
Expand Down

0 comments on commit 23742e7

Please sign in to comment.