Added a context menu to all stock overview page items

This commit is contained in:
Bernd Bestel
2019-03-09 13:11:50 +01:00
parent 4d215edbd0
commit bd483ec8b0
6 changed files with 90 additions and 13 deletions

View File

@@ -126,6 +126,12 @@ $(document).on('click', '.track-charge-cycle-button', function(e)
);
});
$(document).on("click", ".battery-name-cell", function(e)
{
Grocy.Components.BatteryCard.Refresh($(e.currentTarget).attr("data-battery-id"));
$("#batteriesoverview-batterycard-modal").modal("show");
});
function RefreshStatistics()
{
var nextXDays = $("#info-due-batteries").data("next-x-days");

View File

@@ -126,6 +126,12 @@ $(document).on('click', '.track-chore-button', function(e)
);
});
$(document).on("click", ".chore-name-cell", function(e)
{
Grocy.Components.ChoreCard.Refresh($(e.currentTarget).attr("data-chore-id"));
$("#choresoverview-chorecard-modal").modal("show");
});
function RefreshStatistics()
{
var nextXDays = $("#info-due-chores").data("next-x-days");