mirror of
https://github.com/grocy/grocy.git
synced 2025-08-13 17:27:23 +00:00
Finished first version of "pictures for products" (references #58)
This commit is contained in:
@@ -54,3 +54,13 @@ BoolVal = function(test)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
GetFileNameFromPath = function(path)
|
||||
{
|
||||
return path.split("/").pop().split("\\").pop();
|
||||
}
|
||||
|
||||
GetFileExtension = function(pathOrFileName)
|
||||
{
|
||||
return pathOrFileName.split(".").pop();
|
||||
}
|
||||
|
Reference in New Issue
Block a user