pjax-rails 0.1.1 → 0.1.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/README.md +14 -1
- data/lib/assets/javascripts/pjax/enable_pjax.js.coffee +1 -1
- data/pjax-rails-0.1.1.gem +0 -0
- data/pjax-rails.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -7,7 +7,20 @@ To activate, add this to your app/assets/javascripts/application.js (or whatever
|
|
7
7
|
|
8
8
|
//=require pjax
|
9
9
|
|
10
|
-
All links that
|
10
|
+
All links that match $('a:not([data-remote]):not([data-behavior])') will then use PJAX.
|
11
|
+
|
12
|
+
The PJAX container has to be marked with data-pjax-container=true, so for example:
|
13
|
+
|
14
|
+
<body>
|
15
|
+
<div>
|
16
|
+
<!-- This will not be touched on PJAX updates -->
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div data-pjax-container="true">
|
20
|
+
<!-- PJAX updates will go here -->
|
21
|
+
</div>
|
22
|
+
</body>
|
23
|
+
|
11
24
|
|
12
25
|
FIXME: Currently the layout is hardcoded to "application". Need to delegate that to the specific layout of the controller.
|
13
26
|
|
@@ -1 +1 @@
|
|
1
|
-
$ -> $('a:not([data-remote]):not([data-behavior])').pjax('
|
1
|
+
$ -> $('a:not([data-remote]):not([data-behavior])').pjax('[data-pjax-container]')
|
data/pjax-rails-0.1.1.gem
CHANGED
Binary file
|
data/pjax-rails.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: pjax-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Heinemeier Hansson (PJAX by Chris Wanstrath)
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-22 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|