Check the options by default on the search page

In accordance with the search in the subreddit view.
This commit is contained in:
StevenNMeza 2021-03-19 19:26:38 +01:00
parent 7e3535b88b
commit 858a584870
1 changed files with 2 additions and 2 deletions

View File

@ -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")