alphabetical_paginate 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
Binary file
|
@@ -3,9 +3,10 @@ module AlphabeticalPaginate
|
|
3
3
|
def alphabetical_paginate params, bootstrap=true
|
4
4
|
output = javascript_include_tag 'alphabetical_paginate' + " \n"
|
5
5
|
|
6
|
+
links = ""
|
7
|
+
|
6
8
|
params[:availableLetters].each do |l|
|
7
9
|
links += '<li><a href="#" data-letter="' + l + '">' + l + "</a></li>\n"
|
8
|
-
|
9
10
|
end
|
10
11
|
pagination = '<div class="pagination">\n' +
|
11
12
|
"<ul>\n" +
|