openfoodfacts/openfoodfacts-server
View on GitHubMove inline JavaScript code out of `import_photos_upload.pl`
Open
#7,343 opened on Sep 15, 2022
HacktoberfestTemplate::Toolkitgood first issue⏰ Stale
Repository metrics
- Stars
- (477 stars)
- PR merge metrics
- (Avg merge 15d 21h) (157 merged PRs in 30d)
Description
In cgi/import_photos_upload.pl from line 212. There is some inline JS that shouldn't be there.
This JavaScript code should ideally be in a new file templates/import_photos_upload.tt.js.
an example for refactoring JS out of perl script linked here