summaryrefslogtreecommitdiffstats
path: root/app/views/search
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-03 14:01:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-03 14:01:32 +0000
commit0f0fbeb26df61312aeac7cd3dabf3c01f36b8838 (patch)
tree2a02ce4c39ba1e93134e17468395469d0d968580 /app/views/search
parent7bca8c42121aa2b8d794e3654017d3432c629fe1 (diff)
downloadredmine-0f0fbeb26df61312aeac7cd3dabf3c01f36b8838.tar.gz
redmine-0f0fbeb26df61312aeac7cd3dabf3c01f36b8838.zip
Makes all pagination-like links use #link_to_content_update (#5138).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5301 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/index.rhtml12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/views/search/index.rhtml b/app/views/search/index.rhtml
index 348421d3f..13ec567d9 100644
--- a/app/views/search/index.rhtml
+++ b/app/views/search/index.rhtml
@@ -35,16 +35,12 @@
<p><center>
<% if @pagination_previous_date %>
-<%= link_to_remote ('&#171; ' + l(:label_previous)),
- {:update => :content,
- :url => params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))
- }, :href => url_for(params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>&nbsp;
+<%= link_to_content_update('&#171; ' + l(:label_previous),
+ params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>&nbsp;
<% end %>
<% if @pagination_next_date %>
-<%= link_to_remote (l(:label_next) + ' &#187;'),
- {:update => :content,
- :url => params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))
- }, :href => url_for(params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %>
+<%= link_to_content_update(l(:label_next) + ' &#187;',
+ params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %>
<% end %>
</center></p>