Skip to content

Commit

Permalink
adapted tooltip and removed note on empty room capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Aug 28, 2024
1 parent adce41b commit 9e3e66b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions caimira/apps/calculator/static/js/co2_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ function validateCO2Form() {
submit = false;
}
}
else {
$fittingToSubmit.find("#warning_room_capacity_null").show();
}
}

return submit;
Expand Down Expand Up @@ -425,7 +422,6 @@ function clearFittingResultComponent() {
$referenceNode.find("#DIVCO2_fitting_result, #CO2_input_data_div").hide();
$referenceNode.find("#DIVCO2_fitting_to_submit").hide();
$referenceNode.find("#CO2_data_plot").attr("src", "");
$referenceNode.find("#warning_room_capacity_null").hide();

// Update the ventilation scheme components
$referenceNode.find("#fitting_ventilation_states, [name=fitting_ventilation_type]").prop(
Expand Down
6 changes: 1 addition & 5 deletions caimira/apps/templates/base/calculator.form.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,10 @@
<strong>Room data:</strong>
<div class="form-group">
<label class="col-form-label" for="room_capacity">Maximum occupation – design limit:</label>
<div data-tooltip="The maximum number of occupants foreseen by the architectural design of the room. It is only used by the CO2 fitting algorithm to convert the ventilation rate obtained in L/s/person. If not specified, this conversion will not be performed.">
<div data-tooltip="The maximum number of occupants foreseen by the conceptual (architectural) design of the room, also know as the room capacity. It is only used by the CO2 fitting algorithm to convert the ventilation rate obtained in L/s/person. If not specified, this conversion will not be performed.">
<span class="tooltip_text">?</span>
</div>
<input type="number" id="room_capacity" class="form-control col-sm-7" name="room_capacity" placeholder="Number" min=1 form="not-submitted">
<p id="warning_room_capacity_null" class="mt-2" style="display: none">
<strong>Note:</strong> The maximum occupation - design limit was not specified. <br>
Therefore the flow rate in liters per second per person will not be performed.
</p>
</div>
</div>

Expand Down

0 comments on commit 9e3e66b

Please sign in to comment.