pjax_rails 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/pjax.rb +1 -1
- data/vendor/assets/javascripts/jquery.pjax.js +3 -3
- metadata +2 -2
data/lib/pjax.rb
CHANGED
@@ -200,14 +200,14 @@ function pjax(options) {
|
|
200
200
|
|
201
201
|
var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options])
|
202
202
|
if (textStatus !== 'abort' && allowed)
|
203
|
-
window.location
|
203
|
+
window.location.replace(container.url)
|
204
204
|
}
|
205
205
|
|
206
206
|
options.success = function(data, status, xhr) {
|
207
207
|
var container = extractContainer(data, xhr, options)
|
208
208
|
|
209
209
|
if (!container.contents) {
|
210
|
-
window.location
|
210
|
+
window.location.replace(container.url)
|
211
211
|
return
|
212
212
|
}
|
213
213
|
|
@@ -381,7 +381,7 @@ function onPjaxPopstate(event) {
|
|
381
381
|
// scroll position.
|
382
382
|
container[0].offsetHeight
|
383
383
|
} else {
|
384
|
-
window.location
|
384
|
+
window.location.replace(location.href)
|
385
385
|
}
|
386
386
|
}
|
387
387
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pjax_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-rails
|