From f1344e3583a3d40732190a6e76e2b3f83bdb7476 Mon Sep 17 00:00:00 2001 From: jachamp <28732543+jimchamp@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:37:42 -0700 Subject: [PATCH] Set placeholder text in body of template --- openlibrary/templates/search/searchbox.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlibrary/templates/search/searchbox.html b/openlibrary/templates/search/searchbox.html index 1c210cc2071..0c3ad6ae7d0 100644 --- a/openlibrary/templates/search/searchbox.html +++ b/openlibrary/templates/search/searchbox.html @@ -1,4 +1,7 @@ -$def with (q, placeholder=_('Search')) +$def with (q, placeholder="") + +$ placeholder = placeholder or _('Search') +