mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Rework API to be more RESTful (references #139)
This commit is contained in:
@@ -56,7 +56,7 @@ $(document).on('click', '.undo-stock-booking-button', function(e)
|
||||
var element = $(e.currentTarget);
|
||||
var bookingId = $(e.currentTarget).attr('data-booking-id');
|
||||
|
||||
Grocy.Api.Get('booking/' + bookingId.toString() + '/undo',
|
||||
Grocy.Api.Post('stock/bookings/' + bookingId.toString() + '/undo', { },
|
||||
function(result)
|
||||
{
|
||||
element.closest("tr").addClass("text-muted");
|
||||
|
Reference in New Issue
Block a user