Restored staged changes of 27f9d70b56

This commit is contained in:
Bernd Bestel
2024-03-15 18:48:51 +01:00
parent 402d98757e
commit b26dfe3fb0
3 changed files with 64 additions and 4 deletions

View File

@@ -249,8 +249,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()
@@ -275,7 +275,7 @@ $('#product_id_text_input').on('blur', function(e)
}
);
}
}*/
}
};
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING)