mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 17:58:32 +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:
@@ -287,7 +287,7 @@ function OnLocationChange(locationId, stockId)
|
||||
var openTxt = __t("Not opened");
|
||||
if (stockEntry.open == 1)
|
||||
{
|
||||
openTxt = __t("Opened");
|
||||
openTxt = __n(stockEntry.amount, "Opened", "Opened");
|
||||
}
|
||||
|
||||
if (stockEntry.location_id == locationId)
|
||||
@@ -672,7 +672,6 @@ $(document).on("change", "#scan-mode", function(e)
|
||||
|
||||
$("#scan-mode-button").on("click", function(e)
|
||||
{
|
||||
document.activeElement.blur();
|
||||
$("#scan-mode").click();
|
||||
$("#scan-mode-button").toggleClass("btn-success").toggleClass("btn-danger");
|
||||
if ($("#scan-mode").prop("checked"))
|
||||
|
Reference in New Issue
Block a user