Refresh chore-/batterycard after tracking

This commit is contained in:
Bernd Bestel
2020-12-20 15:04:46 +01:00
parent 6eaee0c6f9
commit 3fb55b706b
2 changed files with 2 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
{
Grocy.FrontendHelpers.EndUiBusy("batterytracking-form");
toastr.success(__t('Tracked charge cycle of battery %1$s on %2$s', batteryDetails.battery.name, $('#tracked_time').find('input').val()) + '<br><a class="btn btn-secondary btn-sm mt-2" href="#" onclick="UndoChargeCycle(' + result.id + ')"><i class="fas fa-undo"></i> ' + __t("Undo") + '</a>');
Grocy.Components.BatteryCard.Refresh($('#battery_id').val());
$('#battery_id').val('');
$('#battery_id_text_input').focus();