Skip to content
Permalink
Browse files
Fix upload of cover and book formats containing html characters
  • Loading branch information
OzzieIsaacs committed Nov 20, 2021
1 parent bcdc976 commit 7ad419dc8c12180e842a82118f4866ac3d074bc5
Showing with 2 additions and 2 deletions.
  1. +2 −2 cps/static/js/edit_books.js
@@ -248,15 +248,15 @@ $("#btn-upload-format").on("change", function () {
if (filename.substring(3, 11) === "fakepath") {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$("#upload-format").html(filename);
$("#upload-format").text(filename);
});

$("#btn-upload-cover").on("change", function () {
var filename = $(this).val();
if (filename.substring(3, 11) === "fakepath") {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$("#upload-cover").html(filename);
$("#upload-cover").text(filename);
});

$("#xchange").click(function () {

0 comments on commit 7ad419d

Please sign in to comment.