mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Merge pull request #1788 from andreheuer/master
Fixed battery label printing
This commit is contained in:
commit
486a58909d
@ -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…
x
Reference in New Issue
Block a user