summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-26 11:00:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-26 11:00:09 +0000
commit56138544e10a29ec2216730635555287eeb35435 (patch)
tree506a71f75eb1a0e6166af2c4d5d36f7dfa484f75 /app
parent0470d7b129fb4ef93f176ad90a1ee0347e07baf5 (diff)
downloadredmine-56138544e10a29ec2216730635555287eeb35435.tar.gz
redmine-56138544e10a29ec2216730635555287eeb35435.zip
Removed unused helper #preview_link (#27758).
git-svn-id: http://svn.redmine.org/redmine/trunk@17527 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index da06e2b6a..d34a9c0ae 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1268,14 +1268,6 @@ module ApplicationHelper
link_to l(:button_delete), url, options
end
- def preview_link(url, form, target='preview', options={})
- content_tag 'a', l(:label_preview), {
- :href => "#",
- :onclick => %|submitPreview("#{escape_javascript url_for(url)}", "#{escape_javascript form}", "#{escape_javascript target}"); return false;|,
- :accesskey => accesskey(:preview)
- }.merge(options)
- end
-
def link_to_function(name, function, html_options={})
content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(html_options))
end