ajaxify_rails 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ajaxify_rails/action_controller_additions.rb +8 -1
- data/lib/ajaxify_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 003a87a85d738faa2136e56ede3595c2fd82f1ed
|
4
|
+
data.tar.gz: 5fb1b3dba67cb9d46812dbbf5f5a4e59b1c1aeed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e24f2baf7d1230ffcf866b640ba87eb1f4b6b271cf0044bb74a24cd9b94f5294de6819be46541111f5b8a03b3f831b8261a43893f014cc77db92d19c5109b601
|
7
|
+
data.tar.gz: 62e222d3398aa1a1e4c8ce2b96a2323f23080ceef9df1ae86e6bf5f08688459d708b983685628bc1cb25f2747a5cb0526ed9a129857f8f24e9d1a264fc931552
|
@@ -16,6 +16,10 @@ module ActionControllerAdditions
|
|
16
16
|
''
|
17
17
|
end
|
18
18
|
|
19
|
+
def ajaxify_after_render_extra_content
|
20
|
+
''
|
21
|
+
end
|
22
|
+
|
19
23
|
|
20
24
|
def ajaxify_add_meta_tags
|
21
25
|
ajaxify_add_meta_tag( ajaxify_assets_digest_meta_tag )
|
@@ -53,13 +57,16 @@ module ActionControllerAdditions
|
|
53
57
|
|
54
58
|
super args
|
55
59
|
|
60
|
+
after_render_extra_content = ajaxify_after_render_extra_content
|
61
|
+
|
62
|
+
|
56
63
|
# Store current path for redirect url changes. Also used to remove the ajaxify parameter that gets added to some auto generated urls
|
57
64
|
# like e.g. pagination links see (ajaxify.js -> on_ajaxify_success())
|
58
65
|
#
|
59
66
|
current_url_tag = view_context.content_tag(:span, remove_ajaxify_param(request.fullpath),
|
60
67
|
id: 'ajaxify_location')
|
61
68
|
|
62
|
-
response_body[0] += view_context.content_tag(:div, current_url_tag + extra_content,
|
69
|
+
response_body[0] += view_context.content_tag(:div, current_url_tag + extra_content + after_render_extra_content,
|
63
70
|
id: 'ajaxify_content', style: 'display:none',
|
64
71
|
data: { page_title: page_title,
|
65
72
|
flashes: flashes.to_json,
|
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.5
|
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-
|
11
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|