neat-pages 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,13 +2,14 @@ class NeatPage
2
2
  constructor: () ->
3
3
  # AJAX pagination only for IE7 and up
4
4
  if navigator.appVersion.indexOf("MSIE 7.") == -1
5
- @initPagination()
5
+ if $('#neat-pages-ajax-wrapper').length != 0
6
+ @initPagination()
6
7
 
7
- $(window).hashchange () => @loadPage @getPageFromHash()
8
+ $(window).hashchange () => @loadPage @getPageFromHash()
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
+ $('#neat-pages-navigation li.next a').click (e) => @nextPage() ; return false
11
+ $('#neat-pages-navigation li.previous a').click (e) => @previousPage() ; return false
12
+ $('#neat-pages-navigation li.page a').click (e) => @thatPage $(e.target) ; return false
12
13
 
13
14
 
14
15
 
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.1
4
+ version: 0.1.2
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: &2154210180 !ruby/object:Gem::Requirement
15
+ requirement: &2159993740 !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: *2154210180
24
+ version_requirements: *2159993740
25
25
  - !ruby/object:Gem::Dependency
26
- requirement: &2154209680 !ruby/object:Gem::Requirement
26
+ requirement: &2159993240 !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: *2154209680
35
+ version_requirements: *2159993240
36
36
  - !ruby/object:Gem::Dependency
37
- requirement: &2154233740 !ruby/object:Gem::Requirement
37
+ requirement: &2160017300 !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ! '>='
40
40
  - !ruby/object:Gem::Version
@@ -43,7 +43,7 @@ dependencies:
43
43
  prerelease: false
44
44
  type: :development
45
45
  name: rails
46
- version_requirements: *2154233740
46
+ version_requirements: *2160017300
47
47
  description: A simple pagination API to paginate Mongoid Models.
48
48
  email:
49
49
  - sebastien@demarque.com