mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 18:54:35 +00:00
Fixed nested recipes costs calculation (fixes #299)
This commit is contained in:
@@ -37,6 +37,13 @@ GetUriParam = function(key)
|
||||
}
|
||||
};
|
||||
|
||||
UpdateUriParam = function(key, value)
|
||||
{
|
||||
var queryParameters = new URLSearchParams(location.search);
|
||||
queryParameters.set(key, value);
|
||||
window.history.replaceState({ }, "", decodeURIComponent(`${location.pathname}?${queryParameters}`));
|
||||
};
|
||||
|
||||
IsTouchInputDevice = function()
|
||||
{
|
||||
if (("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch)
|
||||
|
Reference in New Issue
Block a user