jquery-infinite-pages 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.
- checksums.yaml +8 -8
- data/README.md +28 -29
- data/app/assets/javascripts/jquery.infinite-pages.js.coffee +2 -2
- data/lib/jquery/infinite_pages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTFlZjg0ZGNkYTk4MmZiODI0YTljZmQ4YTZmYWQ4MGViYzEwZjUzZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmY0ZmNmMmI5NGNlMWIzZDkzNmNmYmFlOTE2Y2Q1ZTNiZDYwMGYxMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDdmZDJmMmJhNGQ1ZDIwZjZmMGQyOTEzOWM1NmZlZjU5NDUwNGYyMGIwNzAz
|
10
|
+
OGQ1MGY4YTdkOWIwYWFmOTk5MWM5NDRmMjZhNDZhZmRhZGFlODE0Y2I2MTUy
|
11
|
+
ODdmYjQxMzU4NjZkMjNjOTcxMDY4N2RlMGM0NGQxMjEzODJhZmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzVmNjg5YjVjMDM1NGFhZDM5MGYxOGQwNzU3YWQ0YmIxMTQyY2YyNjk3OWVm
|
14
|
+
MjFlMDNmOWZlOTkwYjI4Zjg1Y2U2ZGM1MzFmN2E3ODIzMGFlNzI2NjIxYzA4
|
15
|
+
ODE1NGI3ZDM4OTdjY2QxYTAwMDMxMmE5YzhhYjU5MWZjOTQ2ZTM=
|
data/README.md
CHANGED
@@ -1,12 +1,37 @@
|
|
1
1
|
jQuery Infinite Pages
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[](http://badge.fury.io/rb/jquery-infinite-pages)
|
5
|
+
|
4
6
|
A light-weight jQuery plugin for adding infinite scrolling to paginated HTML views
|
5
7
|
that tastes great with [Rails](https://github.com/rails/rails) and
|
6
8
|
[Kaminari](https://github.com/amatsuda/kaminari).
|
7
9
|
|
8
|
-
This project was originally designed for Rails,
|
9
|
-
|
10
|
+
This project was originally designed for Rails, but the core plugin is flexible
|
11
|
+
enough to use anywhere.
|
12
|
+
|
13
|
+
Installation
|
14
|
+
------------
|
15
|
+
|
16
|
+
Add this line to your application's `Gemfile`:
|
17
|
+
```ruby
|
18
|
+
gem 'jquery-infinite-pages'
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
```
|
23
|
+
bundle install
|
24
|
+
```
|
25
|
+
|
26
|
+
Add to your `application.js` file:
|
27
|
+
```javascript
|
28
|
+
//= require jquery.infinite-pages
|
29
|
+
```
|
30
|
+
|
31
|
+
### Non-Rails
|
32
|
+
|
33
|
+
Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
|
34
|
+
wherever you want it.
|
10
35
|
|
11
36
|
Usage
|
12
37
|
-----
|
@@ -34,7 +59,7 @@ $('.infinite-table').infinitePages
|
|
34
59
|
|
35
60
|
You can also manually control the firing of load events:
|
36
61
|
|
37
|
-
```
|
62
|
+
```coffeescript
|
38
63
|
# Force load of the next page
|
39
64
|
$('.infinite-table').infinitePages('next')
|
40
65
|
|
@@ -45,32 +70,6 @@ $('.infinite-table').infinitePages('pause')
|
|
45
70
|
$('.infinite-table').infinitePages('resume')
|
46
71
|
```
|
47
72
|
|
48
|
-
Installation
|
49
|
-
------------
|
50
|
-
|
51
|
-
Add this line to your application's Gemfile:
|
52
|
-
|
53
|
-
```ruby
|
54
|
-
gem 'jquery-infinite-pages', :git => 'git://github.com/magoosh/jquery-infinite-pages.git'
|
55
|
-
```
|
56
|
-
|
57
|
-
And then execute:
|
58
|
-
|
59
|
-
```
|
60
|
-
bundle install
|
61
|
-
```
|
62
|
-
|
63
|
-
Add to your `application.js`:
|
64
|
-
|
65
|
-
```javascript
|
66
|
-
//= require jquery.infinite-pages
|
67
|
-
```
|
68
|
-
|
69
|
-
### Non-Rails
|
70
|
-
|
71
|
-
Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
|
72
|
-
wherever you want it.
|
73
|
-
|
74
73
|
Rails/Kaminari Example
|
75
74
|
----------------------
|
76
75
|
|
@@ -80,8 +80,8 @@ Released under the MIT License
|
|
80
80
|
@_loading()
|
81
81
|
|
82
82
|
$.getScript(@$container.find(@options.navSelector).attr('href'))
|
83
|
-
.done
|
84
|
-
.fail
|
83
|
+
.done(=> @_success())
|
84
|
+
.fail(=> @_error())
|
85
85
|
|
86
86
|
_loading: ->
|
87
87
|
@options.state.loading = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-infinite-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Millman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|