1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 12:30:00 +00:00

Fixed codacy requirements

This commit is contained in:
kyos 2017-08-10 12:34:54 +02:00
parent aa4a5dc3ef
commit 9a17a09cc7

View File

@ -201,10 +201,10 @@ $("#search").on("change input.typeahead:selected", function(){
});
});
$("#btn-upload-format").on('change', function () {
$("#btn-upload-format").on("change", function () {
var filename = $(this).val();
if (filename.substring(3,11) == 'fakepath') {
if (filename.substring(3,11) === "fakepath") {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$('#upload-format').html(filename);
$("#upload-format").html(filename);
});