]> git.koha-community.org Git - koha.git/commit
Bug 30223: Move book cover image upload JS to a separate file
authorOwen Leonard <oleonard@myacpl.org>
Wed, 2 Mar 2022 16:12:05 +0000 (16:12 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 20 Apr 2022 07:25:51 +0000 (21:25 -1000)
commit5e90c0cbb3abc4656139cfdbdefbbc159f67c470
treed6811af93ad4a2680100f57d9dfd5bb075442813
parent42612370cca95ece959ab7cbdba5275010a6b521
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>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt
koha-tmpl/intranet-tmpl/prog/js/upload-images.js [new file with mode: 0644]