mirror of
https://github.com/janeczku/calibre-web.git
synced 2024-11-26 08:51:05 +02:00
Fixed codacy requirements
This commit is contained in:
parent
9086f4e0e7
commit
e5b4bed01c
@ -206,10 +206,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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user