From f5cf62f2097cb833eb62dbe02aad5a2f6e5a75a2 Mon Sep 17 00:00:00 2001 From: Virgil Grigoras Date: Tue, 26 Feb 2019 11:17:06 +0100 Subject: [PATCH] Fix issues shown by codacy --- cps/static/js/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cps/static/js/main.js b/cps/static/js/main.js index 0893a905..2ecf47d7 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -205,11 +205,11 @@ $(function() { $(".discover .row").isotope("layout"); }); - $(".author-expand").click(function() { - $(this).parent().find('a.author-name').slice($(this).data("authors-max")).toggle(); - $(this).parent().find('span.author-hidden-divider').toggle(); - $(this).html()==$(this).data("collapse-caption")? $(this).html('(...)'):$(this).html($(this).data("collapse-caption")); - $(".discover .row").isotope("layout"); - }); + $(".author-expand").click(function() { + $(this).parent().find("a.author-name").slice($(this).data("authors-max")).toggle(); + $(this).parent().find("span.author-hidden-divider").toggle(); + $(this).html()===$(this).data("collapse-caption") ? $(this).html("(...)") : $(this).html($(this).data("collapse-caption")); + $(".discover .row").isotope("layout"); + }); });