From e399051cec0e7c2eb97ac8fc0fa9af71979dcd1a Mon Sep 17 00:00:00 2001 From: Andreas Roussos Date: Wed, 24 Jul 2024 18:17:23 +0000 Subject: [PATCH] Bug 33668: (follow-up) Tidy up the code Added spaces around the argument to translateY() as per the rest of the code. Fixed indentation. Removed a stray space before closing parenthesis. --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 2 +- koha-tmpl/opac-tmpl/bootstrap/js/global.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index ce994d9afb..19b72f42cf 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -691,7 +691,7 @@ th { position: absolute; right: 20px; top: 50%; - transform: translateY(-50%); + transform: translateY( -50% ); cursor: pointer; color: #999; } diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/global.js b/koha-tmpl/opac-tmpl/bootstrap/js/global.js index 715233b8ea..db2cb7b69a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/global.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/global.js @@ -253,14 +253,14 @@ function setPlaceholder(){ let search_placeholder = $("#masthead_search option:selected").data("placeholder"); let clearButton = $(''); - $("#translControl1").attr("placeholder", search_placeholder ).after(clearButton); + $("#translControl1").attr("placeholder", search_placeholder).after(clearButton); - clearButton.click(function() { + clearButton.click(function() { $("#translControl1").val('').focus(); $(this).hide(); }); - $("#translControl1").on('input', function() { + $("#translControl1").on('input', function() { if ($(this).val() !== '') { clearButton.show(); } else { -- 2.39.2