mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(search) Toggle for showing recent results
Actually persist the value of the toggle between searches too...
This commit is contained in:
parent
aff690f7d6
commit
41cccfd2aa
@ -18,14 +18,11 @@ public class DecoratedSearchResults {
|
|||||||
private final String focusDomain;
|
private final String focusDomain;
|
||||||
private final int focusDomainId;
|
private final int focusDomainId;
|
||||||
private final SearchFilters filters;
|
private final SearchFilters filters;
|
||||||
public String getQuery() {
|
|
||||||
return params.query();
|
// These are used by the search form
|
||||||
}
|
public String getQuery() { return params.query(); }
|
||||||
public String getProfile() {
|
public String getProfile() { return params.profile().filterId; }
|
||||||
return params.profile().filterId;
|
public String getJs() { return params.js().value; }
|
||||||
}
|
|
||||||
public String getJs() {
|
|
||||||
return params.js().value;
|
|
||||||
}
|
|
||||||
public String getAdtech() { return params.adtech().value; }
|
public String getAdtech() { return params.adtech().value; }
|
||||||
|
public String getRecent() { return params.recent().value; }
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<input type="hidden" name="js" value="{{js}}">
|
<input type="hidden" name="js" value="{{js}}">
|
||||||
<input type="hidden" name="adtech" value="{{adtech}}">
|
<input type="hidden" name="adtech" value="{{adtech}}">
|
||||||
<input type="hidden" name="profile" value="{{profile}}">
|
<input type="hidden" name="profile" value="{{profile}}">
|
||||||
|
<input type="hidden" name="recent" value="{{recent}}">
|
||||||
|
|
||||||
<input type="submit" form="search-form" title="Execute Search" value="Search">
|
<input type="submit" form="search-form" title="Execute Search" value="Search">
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user