mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Squashed commit
Make it possible to actively not-check a mandatory checkbox Userfield (closes #2601) Pluralize the "opened" localization string (closes #2280) Added a trendline to the price history chart (closes #2237) Various minor style/code refinements
This commit is contained in:
@@ -20,21 +20,21 @@ $("#expected_barcode").on("keyup", function(e)
|
||||
if ($("#expected_barcode").val().length > 1)
|
||||
{
|
||||
$("#scanned_barcode").removeAttr("disabled");
|
||||
$("#barcodescanner-start-button").removeAttr("disabled");
|
||||
$("#barcodescanner-start-button").removeClass("disabled");
|
||||
$("#camerabarcodescanner-start-button").removeAttr("disabled");
|
||||
$("#camerabarcodescanner-start-button").removeClass("disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#scanned_barcode").attr("disabled", "");
|
||||
$("#barcodescanner-start-button").attr("disabled", "");
|
||||
$("#barcodescanner-start-button").addClass("disabled");
|
||||
$("#camerabarcodescanner-start-button").attr("disabled", "");
|
||||
$("#camerabarcodescanner-start-button").addClass("disabled");
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function()
|
||||
{
|
||||
$("#barcodescanner-start-button").attr("disabled", "");
|
||||
$("#barcodescanner-start-button").addClass("disabled");
|
||||
$("#camerabarcodescanner-start-button").attr("disabled", "");
|
||||
$("#camerabarcodescanner-start-button").addClass("disabled");
|
||||
$("#expected_barcode").focus();
|
||||
}, 500);
|
||||
|
||||
|
Reference in New Issue
Block a user