system: whitespace on previous

This commit is contained in:
Franco Fichtner 2021-04-01 14:24:15 +02:00
parent 44072ec44c
commit cd11a6a150

View File

@ -129,11 +129,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
.removeClass('progress-bar-danger')
.addClass('progress-bar-success');
}
// update bar
if($('#thermal_sensors_widget_show_temp_in_fahrenheit').attr('checked') === 'checked') {
if ($('#thermal_sensors_widget_show_temp_in_fahrenheit').attr('checked') === 'checked') {
progressBar.html(Number.parseFloat(1.8 * sensor['temperature'] + 32).toFixed(1) + ' °F');
} else {
progressBar.html(sensor['temperature'] + ' °C');
progressBar.html(sensor['temperature'] + ' °C');
}
progressBar.css("width", tempIntValue + "%").attr("aria-valuenow", tempIntValue + "%");