From e5b4bed01c5fdb595ab66cee74293a87d099d55e Mon Sep 17 00:00:00 2001 From: kyos Date: Thu, 10 Aug 2017 12:34:54 +0200 Subject: [PATCH] Fixed codacy requirements --- cps/static/js/edit_books.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/static/js/edit_books.js b/cps/static/js/edit_books.js index 879c57f4..13fba74c 100644 --- a/cps/static/js/edit_books.js +++ b/cps/static/js/edit_books.js @@ -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); });