From 858a584870535a649f24d9459f84c5ed785184bc Mon Sep 17 00:00:00 2001 From: StevenNMeza Date: Fri, 19 Mar 2021 19:26:38 +0100 Subject: [PATCH] Check the options by default on the search page In accordance with the search in the subreddit view. --- views/search.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/search.pug b/views/search.pug index 447ced0..f5bdf12 100644 --- a/views/search.pug +++ b/views/search.pug @@ -15,13 +15,13 @@ html input(type="text", name="q", id="q", placeholder="search", value=""+ q +"") div label(for="restrict_sr") limit my search to r/#{subreddit} - if restrict_sr === 'on' + if !restrict_sr || restrict_sr === 'on' input(type="checkbox", name="restrict_sr", id="restrict_sr", checked="checked") else input(type="checkbox", name="restrict_sr", id="restrict_sr") div label(for="nsfw") include NSFW results - if nsfw === 'on' + if !nsfw || nsfw === 'on' input(type="checkbox", name="nsfw", id="nsfw", checked="checked") else input(type="checkbox", name="nsfw", id="nsfw")