ajaxify_rails 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fce3c3696ff1d1c543390f2916755a4349caff8b
|
4
|
+
data.tar.gz: ac2902f259d745682f43f896d642893469579467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7d6ca537d5eac8fbc1b276e4279024000126bdfc73c853cec4b080be79e69c76d2d54d5b16333f33ea6c51f022321cd9e681e6569e4fda6a963e32d6c93c40
|
7
|
+
data.tar.gz: 515702d5e892b8609e716ea34526a4226a50149d5d0dddceac6e3ccf39ba3294d0b396cceb43929bef2a57ff443695567567e0e40f8040642248a6c73016cd9a
|
@@ -96,7 +96,7 @@ module ActionControllerAdditions
|
|
96
96
|
|
97
97
|
def redirect_to(options = {}, response_status = {})
|
98
98
|
if request.referer # make redirect to back work for browsers without history api
|
99
|
-
request.referer.sub!('
|
99
|
+
request.referer.sub!('#/', '/')
|
100
100
|
end
|
101
101
|
|
102
102
|
super
|
@@ -261,7 +261,7 @@ show_flashes = (flashes) ->
|
|
261
261
|
on_hash_change = ->
|
262
262
|
url = window.location.hash.replace(/#/, "")
|
263
263
|
|
264
|
-
if match = window.location.pathname.match(base_path_regexp())
|
264
|
+
if base_paths and base_paths.length > 0 and match = window.location.pathname.match(base_path_regexp())
|
265
265
|
url = match[0] + url
|
266
266
|
|
267
267
|
url = '/' if url == ''
|