Restored staged changes of 27f9d70b56

This commit is contained in:
Bernd Bestel
2024-12-23 18:01:29 +01:00
parent e273158796
commit b2aa882abb
3 changed files with 64 additions and 4 deletions

View File

@@ -250,8 +250,8 @@ $('#product_id_text_input').on('blur', function(e)
Grocy.Components.ProductPicker.PopupOpen = false;
window.location.href = U('/product/new?flow=InplaceNewProductWithBarcode&barcode=' + encodeURIComponent(input) + '&returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative + "?flow=InplaceAddBarcodeToExistingProduct&barcode=" + input + "&" + embedded) + "&" + embedded);
}
}
/*barcodepluginlookup: {
},
barcodepluginlookup: {
label: '<strong>E</strong> ' + __t('External barcode lookup (via plugin)'),
className: 'btn-dark add-new-product-plugin-dialog-button responsive-button ' + addProductWorkflowsAdditionalCssClasses,
callback: function()
@@ -276,7 +276,7 @@ $('#product_id_text_input').on('blur', function(e)
}
);
}
}*/
}
};
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)