ochko-flow_pagination 1.2.2 → 1.2.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -8,11 +8,17 @@ module FlowPagination
8
8
  flow_pagination = ''
9
9
 
10
10
  if self.current_page < self.last_page
11
- flow_pagination = @template.link_to_remote(
11
+ if @options[:noajax]
12
+ flow_pagination = @template.link_to(
13
+ @template.t('flow_pagination.link', :default => 'more'),
14
+ url_for(self.next_page))
15
+ else
16
+ flow_pagination = @template.link_to_remote(
12
17
  @template.t('flow_pagination.link', :default => 'more'),
13
18
  {:url => url_for(self.next_page),
14
19
  :method => @template.request.request_method}.
15
20
  merge(ajax_options) )
21
+ end
16
22
  end
17
23
 
18
24
  @template.content_tag(:div, flow_pagination, :id => 'flow_pagination')
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ochko-flow_pagination}
8
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ochirkhuyag.L"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ochko-flow_pagination
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 2
10
- version: 1.2.2
9
+ - 3
10
+ version: 1.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ochirkhuyag.L