alphabetical_paginate 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AlphabeticalPaginate
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
@@ -6,7 +6,7 @@ module AlphabeticalPaginate
6
6
  links = ""
7
7
 
8
8
  output += javascript_include_tag 'alphabetical_paginate' if params[:js]
9
-
9
+
10
10
  if params[:paginate_all]
11
11
  range = params[:language].letters_range
12
12
  if params[:others]
@@ -34,7 +34,7 @@ module AlphabeticalPaginate
34
34
  params[:availableLetters].unshift "All" if (params[:include_all] && !params[:availableLetters].include?("All"))
35
35
  params[:availableLetters] -= (1..9).to_a.map{|x| x.to_s} if !params[:numbers]
36
36
  params[:availableLetters] -= ["*"] if !params[:others]
37
-
37
+
38
38
  params[:availableLetters].each do |l|
39
39
  value = params[:language].output_letter(l)
40
40
  if l == params[:currentField]
@@ -44,7 +44,7 @@ module AlphabeticalPaginate
44
44
  end
45
45
  end
46
46
  end
47
-
47
+
48
48
 
49
49
  element = params[:bootstrap3] ? 'ul' : 'div'
50
50
  if params[:pagination_class] != "none"
@@ -56,7 +56,7 @@ module AlphabeticalPaginate
56
56
  (params[:bootstrap3] ? "" : "<ul>") +
57
57
  links +
58
58
  (params[:bootstrap3] ? "" : "</ul>") +
59
- (params[:bootstrap3] ? "" : "</div>")
59
+ (params[:bootstrap3] ? "</ul>" : "</div>")
60
60
 
61
61
  output += pagination
62
62
  output.html_safe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphabetical_paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-06 00:00:00.000000000 Z
12
+ date: 2014-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler