mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Simplified "checkboxUncheckedValue" handling
This commit is contained in:
@@ -4,7 +4,7 @@ $('#save-recipe-pos-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
var jsonData = $('#recipe-pos-form').serializeJSON({ checkboxUncheckedValue: "0" });
|
||||
var jsonData = $('#recipe-pos-form').serializeJSON();
|
||||
jsonData.recipe_id = Grocy.EditObjectParentId;
|
||||
delete jsonData.display_amount;
|
||||
|
||||
|
Reference in New Issue
Block a user