mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Updated localizations & improved some special and demo translation string data handling
This commit is contained in:
@@ -117,3 +117,15 @@ $.fn.hasAttr = function(name)
|
||||
{
|
||||
return this.attr(name) !== undefined;
|
||||
};
|
||||
|
||||
function IsJsonString(text)
|
||||
{
|
||||
try
|
||||
{
|
||||
JSON.parse(text);
|
||||
} catch(e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user