mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Squashed commit
Fixed number input min/max amount handling Only (auto) save valid user inputs More filters on the stock journal pages Save the last price per used barcode and preselect that as a total price on purchase if not empty (closes #1131) Don't apply conversions for only_check_single_unit_in_stock ingredients (fixes #1120) Render shopping list userfields (closes #1052) Fixed Focus when adding included recipes (closes #1019) Order all base objects with NOCASE (closes #1086)
This commit is contained in:
@@ -424,7 +424,7 @@ Grocy.FrontendHelpers.ShowGenericError = function(message, exception)
|
||||
{
|
||||
bootbox.alert({
|
||||
title: __t('Error details'),
|
||||
message: JSON.stringify(exception, null, 4),
|
||||
message: '<pre class="my-0"><code>' + JSON.stringify(exception, null, 4) + '</code></pre>',
|
||||
closeButton: false
|
||||
});
|
||||
}
|
||||
@@ -448,6 +448,11 @@ $(document).on("change", ".user-setting-control", function()
|
||||
var element = $(this);
|
||||
var settingKey = element.attr("data-setting-key");
|
||||
|
||||
if (!element[0].checkValidity())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var inputType = "unknown";
|
||||
if (typeof element.attr("type") !== typeof undefined && element.attr("type") !== false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user