mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 09:46:03 +00:00
Applied VSCode JS formatting settings
This commit is contained in:
@@ -42,7 +42,7 @@ if (typeof recipe !== "undefined")
|
||||
if (GetUriParam("search") !== undefined)
|
||||
{
|
||||
$("#search").val(GetUriParam("search"));
|
||||
setTimeout(function ()
|
||||
setTimeout(function()
|
||||
{
|
||||
$("#search").keyup();
|
||||
}, 50);
|
||||
@@ -61,7 +61,7 @@ $("#search").on("keyup", Delay(function()
|
||||
recipesTables.search(value).draw();
|
||||
|
||||
$(".recipe-gallery-item").removeClass("d-none");
|
||||
console.log( $(".recipe-gallery-item .card-title:not(:contains_case_insensitive(" + value + "))"));
|
||||
console.log($(".recipe-gallery-item .card-title:not(:contains_case_insensitive(" + value + "))"));
|
||||
|
||||
$(".recipe-gallery-item .card-title:not(:contains_case_insensitive(" + value + "))").parent().parent().parent().addClass("d-none");
|
||||
}, 200));
|
||||
@@ -186,7 +186,7 @@ $(".recipe-consume").on('click', function(e)
|
||||
{
|
||||
Grocy.FrontendHelpers.BeginUiBusy();
|
||||
|
||||
Grocy.Api.Post('recipes/' + objectId + '/consume', { },
|
||||
Grocy.Api.Post('recipes/' + objectId + '/consume', {},
|
||||
function(result)
|
||||
{
|
||||
Grocy.FrontendHelpers.EndUiBusy();
|
||||
@@ -258,7 +258,7 @@ $(".recipe-print").on('click', function(e)
|
||||
|
||||
$('#servings-scale').keyup(function(event)
|
||||
{
|
||||
var data = { };
|
||||
var data = {};
|
||||
data.desired_servings = $(this).val();
|
||||
|
||||
Grocy.Api.Put('objects/recipes/' + $(this).data("recipe-id"), data,
|
||||
|
Reference in New Issue
Block a user