mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 04:16:16 +02:00
Fixed battery label printing
This commit is contained in:
parent
424bfa9313
commit
db43a4bf3a
|
|
@ -88,7 +88,7 @@ $(document).on('click', '.battery-grocycode-label-print', function(e)
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
document.activeElement.blur();
|
document.activeElement.blur();
|
||||||
|
|
||||||
var batteryId = $(e.currentTarget).attr('data-chore-id');
|
var batteryId = $(e.currentTarget).attr('data-battery-id');
|
||||||
Grocy.Api.Get('batteries/' + batteryId + '/printlabel', function(labelData)
|
Grocy.Api.Get('batteries/' + batteryId + '/printlabel', function(labelData)
|
||||||
{
|
{
|
||||||
if (Grocy.Webhooks.labelprinter !== undefined)
|
if (Grocy.Webhooks.labelprinter !== undefined)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user