From 4f10dc20e6600b907f97a0beada77b9193250bde Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Jul 2017 16:16:23 +0000 Subject: [PATCH] Removes #reorder_links for Redmine 4. git-svn-id: http://svn.redmine.org/redmine/trunk@16870 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b43f817ba..e14cff2e7 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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), -- 2.39.5