summaryrefslogtreecommitdiff
path: root/archaeological_files/templates/ishtar/forms/preventive_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files/templates/ishtar/forms/preventive_detail.html')
-rw-r--r--archaeological_files/templates/ishtar/forms/preventive_detail.html12
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();