Skip to content
Snippets Groups Projects
Commit eb0b36ec authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Disabled automatic calculation of heat sum

parent f3090895
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@
/* Page onload function */
$(function(){
/* Calendar will not accept future dates including today */
document.getElementById('idTxtDateInput').setAttribute("max", JSON.stringify(dateYesterday).substring(1,11));
//document.getElementById('idTxtDateInput').setAttribute("max", JSON.stringify(dateYesterday).substring(1,11));
$('#idTxtDateInput').removeClass('hasDatepicker');
});
......@@ -228,7 +228,7 @@
getAjaxHourlyData(jsonParamUrlDataHourly,weatherStationIdParamJSON,true);
document.querySelector("#idTxtDateInput").valueAsDate = dateStartDate;
//document.querySelector("#idTxtDateInput").valueAsDate = dateStartDate;
/*Calling function to calculate and place heatsum value based upon date placed on datepicker*/
//funDtPickerHeatSum();
......@@ -803,7 +803,7 @@
<div class="form-group form-inline">
<label for="nameTxtDateInput">{% trans "Calculate heat sum from date" %}:</label>
<input id="idTxtDateInput" name="nameTxtDateInput" class="form-control" type="date" placeholder="yyyy-mm-dd" onkeydown="return false" value="2020-01-01" style="line-height: inherit;"/>
<input id="idTxtDateInput" name="nameTxtDateInput" class="form-control" type="date" placeholder="yyyy-mm-dd" onkeydown="return false" value="{% now "Y" %}-01-01" style="line-height: inherit;"/>
</div>
<!-- button type="submit" class="btn btn-default">Submit</button -->
</form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment