mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 01:37:13 +00:00
Applied VSCode JS formatting settings
This commit is contained in:
@@ -19,7 +19,7 @@ $("#search").on("keyup", Delay(function()
|
||||
batteriesTable.search(value).draw();
|
||||
}, 200));
|
||||
|
||||
$(document).on('click', '.battery-delete-button', function (e)
|
||||
$(document).on('click', '.battery-delete-button', function(e)
|
||||
{
|
||||
var objectName = $(e.currentTarget).attr('data-battery-name');
|
||||
var objectId = $(e.currentTarget).attr('data-battery-id');
|
||||
@@ -41,7 +41,7 @@ $(document).on('click', '.battery-delete-button', function (e)
|
||||
{
|
||||
if (result === true)
|
||||
{
|
||||
Grocy.Api.Delete('objects/batteries/' + objectId, { },
|
||||
Grocy.Api.Delete('objects/batteries/' + objectId, {},
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/batteries');
|
||||
|
Reference in New Issue
Block a user