Commit 148382cb authored by jplang's avatar jplang

Removes #reorder_links for Redmine 4.

git-svn-id: https://svn.redmine.org/redmine/trunk@16870 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1d72b52c
......@@ -503,24 +503,6 @@ module ApplicationHelper
str.blank? ? nil : str
end
def reorder_links(name, url, method = :post)
# TODO: remove associated styles from application.css too
ActiveSupport::Deprecation.warn "Application#reorder_links will be removed in Redmine 4."
link_to(l(:label_sort_highest),
url.merge({"#{name}[move_to]" => 'highest'}), :method => method,
:title => l(:label_sort_highest), :class => 'icon-only icon-move-top') +
link_to(l(:label_sort_higher),
url.merge({"#{name}[move_to]" => 'higher'}), :method => method,
:title => l(:label_sort_higher), :class => 'icon-only icon-move-up') +
link_to(l(:label_sort_lower),
url.merge({"#{name}[move_to]" => 'lower'}), :method => method,
:title => l(:label_sort_lower), :class => 'icon-only icon-move-down') +
link_to(l(:label_sort_lowest),
url.merge({"#{name}[move_to]" => 'lowest'}), :method => method,
:title => l(:label_sort_lowest), :class => 'icon-only icon-move-bottom')
end
def reorder_handle(object, options={})
data = {
:reorder_url => options[:url] || url_for(object),
......
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