mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 18:31:14 +00:00
Removes #reorder_links for Redmine 4.
git-svn-id: http://svn.redmine.org/redmine/trunk@16870 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3320e651d3
commit
4f10dc20e6
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user