neat-pages 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,14 @@
|
|
1
1
|
class NeatPage
|
2
2
|
constructor: () ->
|
3
|
-
|
3
|
+
# AJAX pagination only for IE7 and up
|
4
|
+
if navigator.appVersion.indexOf("MSIE 7.") == -1
|
5
|
+
@initPagination()
|
4
6
|
|
5
|
-
|
7
|
+
$(window).hashchange () => @loadPage @getPageFromHash()
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
9
|
+
$('#neat-pages-navigation li.next a').click (e) => @nextPage() ; return false
|
10
|
+
$('#neat-pages-navigation li.previous a').click (e) => @previousPage() ; return false
|
11
|
+
$('#neat-pages-navigation li.page a').click (e) => @thatPage $(e.target) ; return false
|
10
12
|
|
11
13
|
|
12
14
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
****************************************************************************/
|
4
4
|
ul#neat-pages-navigation{border-top:1px solid #ddd;clear:both;padding-top:30px;text-align:center;width:100%;
|
5
5
|
li{background:none;border:0;display:inline-block;font-size:12px;margin:0px 2px 0px 0px;
|
6
|
+
*display:inline;
|
6
7
|
a{background:#fff;border:solid 1px #eee;color:#555;font-size:12px;font-weight:normal;margin-right:2px;padding:5px 9px;text-decoration:none;}
|
7
8
|
a:hover{border:solid 1px #ccc;color:#000;}
|
8
9
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neat-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ cert_chain: []
|
|
12
12
|
date: 2013-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
requirement: &
|
15
|
+
requirement: &2154210180 !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
@@ -21,9 +21,9 @@ dependencies:
|
|
21
21
|
prerelease: false
|
22
22
|
type: :development
|
23
23
|
name: rake
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2154210180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
requirement: &
|
26
|
+
requirement: &2154209680 !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
@@ -32,9 +32,9 @@ dependencies:
|
|
32
32
|
prerelease: false
|
33
33
|
type: :development
|
34
34
|
name: rspec
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2154209680
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
requirement: &
|
37
|
+
requirement: &2154233740 !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ! '>='
|
40
40
|
- !ruby/object:Gem::Version
|
@@ -43,8 +43,8 @@ dependencies:
|
|
43
43
|
prerelease: false
|
44
44
|
type: :development
|
45
45
|
name: rails
|
46
|
-
version_requirements: *
|
47
|
-
description:
|
46
|
+
version_requirements: *2154233740
|
47
|
+
description: A simple pagination API to paginate Mongoid Models.
|
48
48
|
email:
|
49
49
|
- sebastien@demarque.com
|
50
50
|
executables: []
|
@@ -103,6 +103,6 @@ rubyforge_project: neat-pages
|
|
103
103
|
rubygems_version: 1.8.10
|
104
104
|
signing_key:
|
105
105
|
specification_version: 3
|
106
|
-
summary:
|
106
|
+
summary: A simple pagination API to paginate Mongoid Models.
|
107
107
|
test_files: []
|
108
108
|
has_rdoc:
|