mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
Stop search view from messing iwht browser history
Fixes #195 Browser back button functions as expected. Will go live in v2.0.3.
This commit is contained in:
parent
fbe353475c
commit
9504a8cf6c
5 changed files with 60 additions and 21 deletions
|
@ -1,14 +1,14 @@
|
|||
<div class="view-search">
|
||||
<form onsubmit={{action "onSearch"}} class="form-inline">
|
||||
<div class="form-group">
|
||||
{{focus-input type="text" value=filter class="form-control mr-3 search-box" placeholder="keywords, tags"}}
|
||||
{{focus-input type="text" value=keywords class="form-control mr-3 search-box" placeholder="keywords, tags"}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ui/ui-button color=constants.Color.Green light=true label=constants.Label.Search onClick=(action "onSearch")}}
|
||||
</div>
|
||||
</form>
|
||||
{{#if validSearch}}
|
||||
{{search/search-results results=results keywords=filter}}
|
||||
{{search/search-results results=results keywords=keywords}}
|
||||
{{else}}
|
||||
{{ui/ui-spacer size=300}}
|
||||
<p class="color-red-700">Your search query is too short</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue