]> source.dussan.org Git - redmine.git/commitdiff
Removed unused helper #preview_link (#27758).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 26 Sep 2018 11:00:09 +0000 (11:00 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 26 Sep 2018 11:00:09 +0000 (11:00 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17527 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index da06e2b6a040ce8a0ebaa8a25436e58171e09f94..d34a9c0aed95a2d1b6b9f612479ff67bf91a358e 100644 (file)
@@ -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