summaryrefslogtreecommitdiffstats
path: root/app/views/issues/show.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 18:01:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 18:01:14 +0000
commitc9a46950de1bbcd7e4b326dcc619ffacd4cac713 (patch)
tree35c3622b331369d07bd59f99383d26cacade1fbf /app/views/issues/show.html.erb
parentff68fff80ed1cc9f95587581be9eb641d7a776e5 (diff)
downloadredmine-c9a46950de1bbcd7e4b326dcc619ffacd4cac713.tar.gz
redmine-c9a46950de1bbcd7e4b326dcc619ffacd4cac713.zip
Removes calls to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10032 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/show.html.erb')
-rw-r--r--app/views/issues/show.html.erb9
1 files changed, 5 insertions, 4 deletions
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 %>
<hr />
<% if @issue.description? %>
<div class="contextual">
- <%= 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') %>
</div>
<p><strong><%=l(:field_description)%></strong></p>