Removed unused console.log and changed logic for generating the short range interactions list
This commit is contained in:
parent
7c0012d355
commit
99388d2fe5
2 changed files with 5 additions and 8 deletions
|
|
@ -395,13 +395,12 @@ function validate_form(form) {
|
|||
|
||||
// Generate the short range interactions list
|
||||
let short_range_interactions = [];
|
||||
$(".form_field_outer_row").each(function (index){
|
||||
index = index + 1;
|
||||
|
||||
$(".form_field_outer_row").each(function (index, element){
|
||||
let obj = {};
|
||||
obj.activity = $("#sr_activity_no_" + String(index)).val();
|
||||
obj.start_time = $("#sr_start_no_" + String(index)).val();
|
||||
obj.duration = $("#sr_duration_no_" + String(index)).val();
|
||||
obj.activity = $(element).find("[name='short_range_activity']").val();
|
||||
obj.start_time = $(element).find("[name='short_range_start_time']").val();
|
||||
obj.duration = $(element).find("[name='short_range_duration']").val();
|
||||
console.log(JSON.stringify(obj))
|
||||
short_range_interactions.push(JSON.stringify(obj));
|
||||
});
|
||||
$("input[type=text][name=short_range_interactions]").val('[' + short_range_interactions + ']');
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
/* Generate the concentration plot using d3 library. */
|
||||
function draw_concentration_plot(svg_id, times, concentrations, cumulative_doses, exposed_presence_intervals) {
|
||||
|
||||
console.log(cumulative_doses)
|
||||
|
||||
var time_format = d3.timeFormat('%H:%M');
|
||||
|
||||
var data_for_graphs = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue