From c9a46950de1bbcd7e4b326dcc619ffacd4cac713 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 18 Jul 2012 18:01:14 +0000 Subject: [PATCH] Removes calls to link_to_remote. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10032 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/new.html.erb | 7 ++++--- app/views/issues/show.html.erb | 9 +++++---- app/views/messages/show.html.erb | 19 +++++++++++-------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index fe07dbdd6..1db43d726 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -26,9 +26,10 @@ <%= watchers_checkboxes(@issue, @available_watchers) %> - <%= link_to_remote l(:label_search_for_watchers), - :url => {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, - :method => 'get' %> + <%= link_to l(:label_search_for_watchers), + {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, + :remote => true, + :method => 'get' %>

<% end %> diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 5601e0e3f..fa81e4645 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -70,10 +70,11 @@ end %>
<% if @issue.description? %>
- <%= link_to_remote_if_authorized( - l(:button_quote), - { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, - :class => 'icon icon-comment') %> + <%= link_to l(:button_quote), + {:controller => 'journals', :action => 'new', :id => @issue}, + :remote => true, + :method => 'post', + :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>

<%=l(:field_description)%>

diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 831d3ec14..36737b191 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -3,11 +3,13 @@
<%= watcher_tag(@topic, User.current) %> - <%= link_to_remote_if_authorized( + <%= link_to( l(:button_quote), - { :url => {:action => 'quote', :id => @topic} }, - :class => 'icon icon-comment' - ) unless @topic.locked? %> + {:action => 'quote', :id => @topic}, + :remote => true, + :method => 'get', + :class => 'icon icon-comment', + :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %> <%= link_to( l(:button_edit), {:action => 'edit', :id => @topic}, @@ -38,11 +40,12 @@ <% @replies.each do |message| %>
">
- <%= link_to_remote_if_authorized( + <%= link_to( image_tag('comment.png'), - { :url => {:action => 'quote', :id => message} }, - :title => l(:button_quote) - ) unless @topic.locked? %> + {:action => 'quote', :id => message}, + :remote => true, + :method => 'get', + :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %> <%= link_to( image_tag('edit.png'), {:action => 'edit', :id => message},