Commit 570163f3 authored by jplang's avatar jplang

Removed unused helper #preview_link (#27758).

git-svn-id: https://svn.redmine.org/redmine/trunk@17527 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1fde9ebd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment