mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 09:46:03 +00:00
Use absolute URLs everywhere, this should fix #3
This commit is contained in:
@@ -2,7 +2,7 @@ Grocy.Components.BatteryCard = { };
|
||||
|
||||
Grocy.Components.BatteryCard.Refresh = function(batteryId)
|
||||
{
|
||||
Grocy.FetchJson('/api/batteries/get-battery-details/' + batteryId,
|
||||
Grocy.Api.Get('batteries/get-battery-details/' + batteryId,
|
||||
function(batteryDetails)
|
||||
{
|
||||
$('#batterycard-battery-name').text(batteryDetails.battery.name);
|
||||
|
Reference in New Issue
Block a user