mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 20:11:16 +00:00
Unified product-/chore-/battery-card modal handling
This commit is contained in:
@@ -24,3 +24,9 @@ Grocy.Components.BatteryCard.Refresh = function(batteryId)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
$(document).on("click", ".batterycard-trigger", function(e)
|
||||
{
|
||||
Grocy.Components.BatteryCard.Refresh($(e.currentTarget).attr("data-battery-id"));
|
||||
$("#batterycard-modal").modal("show");
|
||||
});
|
||||
|
Reference in New Issue
Block a user