function removePeriod(day, idx) {
    var program = getWeekProgram()[day];
    var start = program[idx][0];
    var end = program[idx][1];
    program.splice(idx,1);
    setWeekProgram();
}
/* Removes a heating period from a specific day.
   idx is the idex of the period with values from 0 to 4
*/
Removes a heating period from a specific day.
idx is the idex of the period with values from 0 to 4
Removes a heating period from a specific day . idx is the idex of the period with values from 0 to 4
function removePeriod(day, idx) {
    var program = getWeekProgram()[day];
    var start = program[idx][0];
    var end = program[idx][1];
    program.splice(idx,1);
    setWeekProgram();
}
function removePeriod ( day , idx ) { var program = getWeekProgram ( ) [ day ] ; var start = program [ idx ] [ 0 ] ; var end = program [ idx ] [ 1 ] ; program . splice ( idx , 1 ) ; setWeekProgram ( ) ; }
Removes a heating period from a specific day.
Removes a heating period from a specific day .