Ensure that form element are well disabled to not submit them

As they're not handled by the backend
This commit is contained in:
Jean-Baptiste Bellet
2022-03-09 11:16:19 +01:00
parent 268a73a41d
commit a6c69c8530

View File

@@ -9,9 +9,9 @@ angular.module("admin.enterpriseFees").directive 'spreeEnsureCalculatorPreferenc
settings = element.parent().parent().find('div.calculator-settings')
if value == orig_calculator_type
settings.show()
settings.find('input').prop 'disabled', false
settings.find('input, select').prop 'disabled', false
else
settings.hide()
settings.find('input').prop 'disabled', true
settings.find('input, select').prop 'disabled', true
return
return