Remove unused code for currency select menu which no longer exists

This removes inline JavaScript for #8699. This code was for the old currency select menu which was removed in 4839b7bd63
This commit is contained in:
Cillian O'Ruanaidh
2022-01-14 12:33:30 +00:00
parent f378a9a0cb
commit 22a48de033
2 changed files with 0 additions and 11 deletions

View File

@@ -3,14 +3,6 @@
module Spree
module Admin
module GeneralSettingsHelper
def currency_options
currencies = ::Money::Currency.table.map do |_code, details|
iso = details[:iso_code]
[iso, "#{details[:name]} (#{iso})"]
end
options_from_collection_for_select(currencies, :first, :last, Spree::Config[:currency])
end
def all_units
["g", "oz", "lb", "kg", "T", "mL", "L", "kL"]
end

View File

@@ -97,6 +97,3 @@
= button Spree.t('actions.update'), 'icon-refresh'
%span.or= Spree.t(:or)
= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), edit_admin_general_settings_url, :class => 'button'
:javascript
$('#currency').select2();