Merge branch 'main' into Hargata/users

# Conflicts:
#	Views/Vehicle/Index.cshtml
This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-14 13:08:37 -07:00
13 changed files with 153 additions and 10 deletions

View File

@@ -19,6 +19,13 @@ function updateCheck(sender) {
refreshBarChart();
}, 1000);
}
function refreshMPGChart() {
var vehicleId = GetVehicleId().vehicleId;
var year = getYear();
$.post('/Vehicle/GetMonthMPGByVehicle', {vehicleId: vehicleId, year: year}, function (data) {
$("#monthFuelMileageReportContent").html(data);
})
}
function refreshBarChart(callBack) {
var selectedMetrics = [];
var vehicleId = GetVehicleId().vehicleId;
@@ -47,9 +54,7 @@ function refreshBarChart(callBack) {
year: year
}, function (data) {
$("#gasCostByMonthReportContent").html(data);
if (callBack != undefined) {
callBack();
}
refreshMPGChart();
});
}
function updateReminderPie() {