##// END OF EJS Templates
Fixed #208: Issue list does not scroll up when you click next...
Jean-Philippe Lang -
r1100:0beafecd3bd4
parent child
Show More
@@ -119,17 +119,23 module ApplicationHelper
119
119
120 html = ''
120 html = ''
121 html << link_to_remote(('&#171; ' + l(:label_previous)),
121 html << link_to_remote(('&#171; ' + l(:label_previous)),
122 {:update => "content", :url => url_param.merge(page_param => paginator.current.previous)},
122 {:update => 'content',
123 :url => url_param.merge(page_param => paginator.current.previous),
124 :complete => 'window.scrollTo(0,0)'},
123 {:href => url_for(:params => url_param.merge(page_param => paginator.current.previous))}) + ' ' if paginator.current.previous
125 {:href => url_for(:params => url_param.merge(page_param => paginator.current.previous))}) + ' ' if paginator.current.previous
124
126
125 html << (pagination_links_each(paginator, options) do |n|
127 html << (pagination_links_each(paginator, options) do |n|
126 link_to_remote(n.to_s,
128 link_to_remote(n.to_s,
127 {:url => {:params => url_param.merge(page_param => n)}, :update => 'content'},
129 {:url => {:params => url_param.merge(page_param => n)},
130 :update => 'content',
131 :complete => 'window.scrollTo(0,0)'},
128 {:href => url_for(:params => url_param.merge(page_param => n))})
132 {:href => url_for(:params => url_param.merge(page_param => n))})
129 end || '')
133 end || '')
130
134
131 html << ' ' + link_to_remote((l(:label_next) + ' &#187;'),
135 html << ' ' + link_to_remote((l(:label_next) + ' &#187;'),
132 {:update => "content", :url => url_param.merge(page_param => paginator.current.next)},
136 {:update => 'content',
137 :url => url_param.merge(page_param => paginator.current.next),
138 :complete => 'window.scrollTo(0,0)'},
133 {:href => url_for(:params => url_param.merge(page_param => paginator.current.next))}) if paginator.current.next
139 {:href => url_for(:params => url_param.merge(page_param => paginator.current.next))}) if paginator.current.next
134
140
135 unless count.nil?
141 unless count.nil?
General Comments 0
You need to be logged in to leave comments. Login now