mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 18:36:38 -06:00
Fixes a very minor bug where the persisted year metric blanks out when viewing a different car that doesn't have that specific year.
This commit is contained in:
parent
dbfb7d7d9c
commit
893cdafdc5
@ -8,7 +8,7 @@ namespace CarCareTracker.Helper
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static class StaticHelper
|
public static class StaticHelper
|
||||||
{
|
{
|
||||||
public static string VersionNumber = "1.3.1";
|
public static string VersionNumber = "1.3.2";
|
||||||
public static string DbName = "data/cartracker.db";
|
public static string DbName = "data/cartracker.db";
|
||||||
public static string UserConfigPath = "config/userConfig.json";
|
public static string UserConfigPath = "config/userConfig.json";
|
||||||
public static string GenericErrorMessage = "An error occurred, please try again later";
|
public static string GenericErrorMessage = "An error occurred, please try again later";
|
||||||
|
|||||||
@ -54,7 +54,10 @@ function getSelectedMetrics() {
|
|||||||
if (selectedMetricCheckBoxes.length == 6) {
|
if (selectedMetricCheckBoxes.length == 6) {
|
||||||
$("#selectAllExpenseCheck").prop("checked", true);
|
$("#selectAllExpenseCheck").prop("checked", true);
|
||||||
}
|
}
|
||||||
|
//check if option is available
|
||||||
|
if ($("#yearOption").has(`option[value=${yearMetric}]`).length > 0) {
|
||||||
$('#yearOption').val(yearMetric);
|
$('#yearOption').val(yearMetric);
|
||||||
|
}
|
||||||
$("#reminderOption").val(reminderMetric);
|
$("#reminderOption").val(reminderMetric);
|
||||||
//retrieve data.
|
//retrieve data.
|
||||||
yearUpdated();
|
yearUpdated();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user