ajaxify_rails 0.8.8 → 0.8.9
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: dc82c77342a45dcde6a00513e45ba45660068296
|
4
|
+
data.tar.gz: dbe015f92ff86b75168554864eabfc4dc183eb78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c3fa22b1df1bf6023a214a3ad499688cb3a97dc17989ae5af1231482fce4f7cb5cc5b2b533c5b578f0357846399d90f8d04c8d63d32aba6ad6d8c883770ff5
|
7
|
+
data.tar.gz: 5c737af1c6ae535fab2cf3a3cca2e4f8d4612b7e168758bcc163793646825fee4e2e95415ec872b0666db0b85b30e9890579403d5a6f820eba4673625b308b19
|
@@ -191,8 +191,9 @@ on_ajaxify_success = (data, status, jqXHR, pop_state, options) ->
|
|
191
191
|
# The latter can happen e.g. for pagination links that are auto generated.
|
192
192
|
original_request_type = options.type
|
193
193
|
current_url = $('#ajaxify_content #ajaxify_location').html()
|
194
|
+
current_url = current_url.replace(/&/g, '&')
|
194
195
|
if options.url != current_url
|
195
|
-
options.url = current_url.replace(/(
|
196
|
+
options.url = current_url.replace(/(&|\?)ajaxify_redirect=true/,'')
|
196
197
|
options.type = 'GET'
|
197
198
|
|
198
199
|
unless original_request_type and original_request_type.toLowerCase() == 'post'
|
@@ -205,7 +206,7 @@ on_ajaxify_success = (data, status, jqXHR, pop_state, options) ->
|
|
205
206
|
$("##{content_container} #ajaxify_content").remove()
|
206
207
|
|
207
208
|
if title
|
208
|
-
document.title = title.replace /&
|
209
|
+
document.title = title.replace /&/g, '&' # Todo: need to figure out what else needs to be unescaped
|
209
210
|
|
210
211
|
show_flashes(flashes)
|
211
212
|
|
@@ -356,7 +357,7 @@ rails_ujs_fix = ->
|
|
356
357
|
# public interface
|
357
358
|
# --------------------------------------------------------------------------------------------------------------------
|
358
359
|
|
359
|
-
@Ajaxify = { init, ajaxify, load, update_url, activate, set_content_container, get_content_container, set_loader_element }
|
360
|
+
@Ajaxify = { init, ajaxify, load, update_url, activate, set_content_container, get_content_container, set_loader_element, base_path_regexp }
|
360
361
|
|
361
362
|
|
362
363
|
# --------------------------------------------------------------------------------------------------------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ajaxify_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico Ritsche
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|