From aadd6fd7e01b2ec92e9a65607533531dd78905c6 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Thu, 3 Jun 2021 12:35:09 +0200 Subject: [PATCH] Possible fix for #2003 (Calibre theme download icon broken) --- cps/static/js/caliBlur.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/static/js/caliBlur.js b/cps/static/js/caliBlur.js index 45166834..1a2814fc 100644 --- a/cps/static/js/caliBlur.js +++ b/cps/static/js/caliBlur.js @@ -412,7 +412,7 @@ if($("body.advsearch").length > 0) { $("#add-to-shelves").toggle(); }); $('#add-to-shelf').height("40px"); - function dropdownToggle() { + function search_dropdownToggle() { topPos = $("#add-to-shelf").offset().top-20; if ($('div[aria-label="Add to shelves"]').length > 0) { @@ -428,10 +428,10 @@ if($("body.advsearch").length > 0) { } } - dropdownToggle(); + search_dropdownToggle(); $(window).on("resize", function () { - dropdownToggle(); + search_dropdownToggle(); }); }