From c1f7646e6810b939605ce474b35833a88c36c55e Mon Sep 17 00:00:00 2001 From: titima15 Date: Tue, 15 Oct 2024 10:45:00 -0400 Subject: [PATCH] debugging --- .../transformation/add_transformation_identifier_dialog.mas | 13 +++++++++++-- system_cvterms.txt | 8 ++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/mason/transformation/add_transformation_identifier_dialog.mas b/mason/transformation/add_transformation_identifier_dialog.mas index 838f94f340..d678ea01eb 100644 --- a/mason/transformation/add_transformation_identifier_dialog.mas +++ b/mason/transformation/add_transformation_identifier_dialog.mas @@ -93,6 +93,7 @@ jQuery(document).ready(function(){ var transformation_project_id = "<%$trial_id%>"; var program_name = "<%$breeding_program_name%>"; + var default_plant_material_name = "<%$default_plant_material_name%>"; jQuery("#plant_material").autocomplete({ source: '/ajax/stock/only_accession_autocomplete', @@ -160,14 +161,22 @@ jQuery(document).ready(function(){ jQuery("[name='add_transformation_id_dismiss_button']").click(function() { jQuery('#add_transformation_identifier_dialog').modal('hide'); jQuery('#new_transformation_identifier_name').val(''); - jQuery('#plant_material').val(''); + + if (!default_plant_material_name) { + jQuery('#plant_material').val(''); + } + jQuery('#vector_construct').val(''); jQuery('#transformation_notes').val(''); }); jQuery("#dismiss_transformation_id_saved_dialog").click(function(){ jQuery('#new_transformation_identifier_name').val(''); - jQuery('#plant_material').val(''); + + if (!default_plant_material_name) { + jQuery('#plant_material').val(''); + } + jQuery('#vector_construct').val(''); jQuery('#transformation_notes').val(''); location.reload(); diff --git a/system_cvterms.txt b/system_cvterms.txt index fa6dc40a91..2a6a3a385d 100644 --- a/system_cvterms.txt +++ b/system_cvterms.txt @@ -553,14 +553,14 @@ project_md_image threshold_background_removed_temporary_stitched_drone_imagery S project_md_image threshold_background_removed_tgi_stitched_drone_imagery Vegetative index TGI stitched image without background via threshold (soil, etc) 10/5/2018 nm529 00103 project_md_image threshold_background_removed_vari_stitched_drone_imagery Vegetative index VARI stitched image without background via threshold (soil, etc) 10/5/2018 nm529 00103 project_property active From BrAPI 03/27/2017 nm529 00076 -project_property activity_type tt15 00185 +project_property activity_type tt15 00185 project_property analysis_metadata_json For saving results in analysis trials 06/04/2020 lam87nm529 00119 -project_property autogenerated_name_metadata metadata for each breeding program tt15 00187 -project_property autogenerated_name_prefix prefix for specific project tt15 00187 +project_property autogenerated_name_metadata for breeding program tt15 00187 +project_property autogenerated_name_prefix prefix for specific project tt15 00187 project_property breeding_program 00051 project_property breeding_program_abbreviation From BrAPI 03/27/2017 nm529 00076 project_property data_agreement -project_property default_plant_material for setting plant material for transformation experiment tt15 00187 +project_property default_plant_material set plant material for transformation experiment tt15 00187 project_property design project_property drone_run_averaged_precipitation_sum The averaged-precipitation across the growing season corresponding to a drone run event 09/02/2019 nm529 00130 project_property drone_run_averaged_temperature_growing_degree_days The averaged-temperature growing degree days corresponding to a drone run event 09/02/2019 nm529 00114 -- 2.11.4.GIT