ajaxify_rails 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -233,11 +233,6 @@ correct_url = ->
|
|
233
233
|
|
234
234
|
else if !window.history.pushState # move path behind '#' for browsers without history api
|
235
235
|
|
236
|
-
if window.location.pathname == '/'
|
237
|
-
if window.location.search != ''
|
238
|
-
window.location.href = "#{protocol_with_host()}/#/#{window.location.search}" # move search behind #
|
239
|
-
return
|
240
|
-
|
241
236
|
if base_path_regexp() and (match = window.location.pathname.match(base_path_regexp()))
|
242
237
|
if match[0] == window.location.pathname
|
243
238
|
if window.location.search == ''
|
@@ -245,7 +240,11 @@ correct_url = ->
|
|
245
240
|
else
|
246
241
|
path = match[0].replace(/\?/,'') + '#'
|
247
242
|
else
|
248
|
-
path = "#{match[0].replace(/\/$/,'')}#/#{window.location.pathname.replace(match[0],'')}"
|
243
|
+
path = "#{match[0].replace(/\/$/,'')}#/#{window.location.pathname.replace(match[0],'')}"
|
244
|
+
else if window.location.pathname == '/'
|
245
|
+
if window.location.search != ''
|
246
|
+
window.location.href = "#{protocol_with_host()}/#/#{window.location.search}" # move search behind #
|
247
|
+
return
|
249
248
|
else
|
250
249
|
path = "/##{window.location.pathname}"
|
251
250
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ajaxify_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
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:
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|