This commit is contained in:
Bernd Bestel
2023-05-19 18:08:26 +02:00
parent 49daed6c2b
commit 5f65f2abd0
69 changed files with 204 additions and 502 deletions

View File

@@ -154,7 +154,7 @@ $('#battery_id_text_input').on('blur', function(e)
var input = $('#battery_id_text_input').val().toString();
var possibleOptionElement = [];
// grocycode handling
// Grocycode handling
if (input.startsWith("grcy"))
{
var gc = input.split(":");

View File

@@ -190,7 +190,7 @@ $('#chore_id_text_input').on('blur', function(e)
var input = $('#chore_id_text_input').val().toString();
var possibleOptionElement = [];
// grocycode handling
// Grocycode handling
if (input.startsWith("grcy"))
{
var gc = input.split(":");

View File

@@ -120,7 +120,7 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
if (error)
{
Grocy.FrontendHelpers.ShowGenericError("Error while initializing the barcode scanning library", error.message);
toastr.info(__t("Camera access is only possible when supported and allowed by your browser and when grocy is served via a secure (https://) connection"));
toastr.info(__t("Camera access is only possible when supported and allowed by your browser and when Grocy is served via a secure (https://) connection"));
window.localStorage.removeItem("cameraId");
setTimeout(function()
{

View File

@@ -162,7 +162,7 @@ $('#product_id_text_input').on('blur', function(e)
var input = $('#product_id_text_input').val().toString();
var possibleOptionElement = [];
// grocycode handling
// Grocycode handling
if (input.startsWith("grcy"))
{
var gc = input.split(":");

View File

@@ -77,7 +77,7 @@ $('#recipe_id_text_input').on('blur', function(e)
var input = $('#recipe_id_text_input').val().toString();
var possibleOptionElement = [];
// grocycode handling
// Grocycode handling
if (input.startsWith("grcy"))
{
var gc = input.split(":");

View File

@@ -239,7 +239,7 @@ $("#location_id").on('change', function(e)
}
else
{
// try to get stock id from grocycode
// try to get stock id from Grocycode
if ($("#product_id").data("grocycode"))
{
var gc = $("#product_id").attr("barcode").split(":");