Navigation Menu

Skip to content

Commit

Permalink
Fix upload of cover and book formats containing html characters
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzieIsaacs committed Nov 20, 2021
1 parent bcdc976 commit 7ad419d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cps/static/js/edit_books.js
Expand Up @@ -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 () {
Expand Down

0 comments on commit 7ad419d

Please sign in to comment.