mirror of
https://github.com/grocy/grocy.git
synced 2025-08-13 09:17:26 +00:00
Optimize user settings
This commit is contained in:
@@ -41,3 +41,16 @@ IsTouchInputDevice = function()
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
BoolVal = function(test)
|
||||
{
|
||||
var anything = test.toString().toLowerCase();
|
||||
if (anything === true || anything === "true" || anything === "1" || anything === "on")
|
||||
{
|
||||
return true
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user