Bug 30223

Summary: Move book cover image upload JS to a separate file
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: kyle
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
22.05.00
Circulation function:
Attachments: Bug 30223: Move book cover image upload JS to a separate file
Bug 30223: Move book cover image upload JS to a separate file
Bug 30223: Move book cover image upload JS to a separate file

Description Owen Leonard 2022-03-03 18:47:28 UTC
With the cover image JavaScript in a separate file it can be reused on other pages.
Comment 1 Owen Leonard 2022-03-03 19:02:33 UTC Comment hidden (obsolete)
Comment 2 Lucas Gass (lukeg) 2022-03-04 18:48:45 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2022-04-02 22:23:42 UTC
Created attachment 132906 [details] [review]
Bug 30223: Move book cover image upload JS to a separate file

This patch moves most of the JavaScript from upload-images.tt into a
separate file, upload-images.js. Functionality should be unchanged.

To test, apply the patch and go to Tools  -> Upload local cover image.

Test all the things:
 - Drag-and-drop upload
 - Click-to-browse upload;
 - Deleting existing images
 - Uploading a zip file

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Fridolin Somers 2022-04-20 07:23:57 UTC
Pushed to master for 22.05, thanks to everybody involved ﷐[U+1F984]﷑