diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-07 11:56:40 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:59:31 +0200 |
commit | 632f8e2ea107324838845df2b51d084759923c56 (patch) | |
tree | 9907ca50998ac262431617260d07b4fac3ce36ff /archaeological_files/templates | |
parent | 98e33994e42a0d5ee7cd1142922265589a6cb519 (diff) | |
download | Ishtar-632f8e2ea107324838845df2b51d084759923c56.tar.bz2 Ishtar-632f8e2ea107324838845df2b51d084759923c56.zip |
Preventive file form: fix JS - fix default cost add with price agreement
Diffstat (limited to 'archaeological_files/templates')
-rw-r--r-- | archaeological_files/templates/ishtar/forms/preventive_detail.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/archaeological_files/templates/ishtar/forms/preventive_detail.html b/archaeological_files/templates/ishtar/forms/preventive_detail.html index 59ebb8278..3e9ea3bb6 100644 --- a/archaeological_files/templates/ishtar/forms/preventive_detail.html +++ b/archaeological_files/templates/ishtar/forms/preventive_detail.html @@ -92,12 +92,14 @@ $(".form-cost").change(update_units); $(":input").change( function(){ - $("#add-default-costs").addClass("disabled"); - $("#copy-planned-costs").addClass("disabled"); - let disabled_msg = "{% trans 'The form has changed. Submit your modifications first.' %}"; - $("#add-default-costs-div").attr("title", disabled_msg); - $("#copy-planned-costs-div").attr("title", disabled_msg); + if ($(this).attr("type") != "radio"){ + $("#add-default-costs").addClass("disabled"); + $("#copy-planned-costs").addClass("disabled"); + let disabled_msg = "{% trans 'The form has changed. Submit your modifications first.' %}"; + $("#add-default-costs-div").attr("title", disabled_msg); + $("#copy-planned-costs-div").attr("title", disabled_msg); } + } ); check_planned_value(); update_units(); |