diff options
author | Martin Fischer <martin@push-f.com> | 2021-03-04 07:17:43 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-03-04 07:17:43 +0100 |
commit | b0c30d5b3cc05c27270c9c6fdfb7576397bfccb0 (patch) | |
tree | 5185e5224cbfa0bea5e1d14ca22e3084ceb9cf91 /views | |
parent | 4e6fc7b48472a920ccb273126429ae16d3e12f8a (diff) |
only attempt to load /laws.json if it exists
Diffstat (limited to 'views')
-rw-r--r-- | views/search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/search.html b/views/search.html index 44d496c..5cf0483 100644 --- a/views/search.html +++ b/views/search.html @@ -10,7 +10,7 @@ <h1>National Law of {{.Country.Name}}</h1> {{if .Country.HasPlaceholder}} <form autocomplete="off"> - <input id=search name=q autofocus> + <input id=search name=q autofocus {{if .HasJSONLaws}}data-json{{end}}> <ul id=suggestions></ul> </form> {{else}} |