mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 08:34:48 +00:00
Add user-field-type "file" (#977)
* Add user-field-type "file" * Add userfield-type "picture" * Also limit image height on userfieldsform * Prevent empty userfields (cause warnings in tables after deleting a file) * Show files in dialogs Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
318db53818
commit
07beee93a9
@@ -7,7 +7,7 @@
|
||||
|
||||
if ($("#instruction-manual")[0].files.length > 0)
|
||||
{
|
||||
var someRandomStuff = Math.random().toString(36).substring(2, 100) + Math.random().toString(36).substring(2, 100);
|
||||
var someRandomStuff = RandomString();
|
||||
jsonData.instruction_manual_file_name = someRandomStuff + $("#instruction-manual")[0].files[0].name;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user