fix: always save current search settings
This commit is contained in:
parent
6f7f5e3dd3
commit
7edbe86c6c
1 changed files with 2 additions and 4 deletions
|
@ -136,10 +136,8 @@
|
|||
var query_string = format_query_string(json_result,"");
|
||||
var hits = $("#hitsPerPageSelect :selected");
|
||||
if (!$.isEmptyObject(query_string)) {
|
||||
<#if !queryBuilderRules??>
|
||||
localStorage.setItem('queryBuilderForm',JSON.stringify(json_result));
|
||||
localStorage.setItem('queryBuilderFormSaved',true);
|
||||
</#if>
|
||||
var queryURL = "${urls.base}/customsearch?querytext=" + query_string;
|
||||
if (hits !== null){
|
||||
queryURL = queryURL.concat("&hitsPerPage=",hits.text());
|
||||
|
|
Loading…
Add table
Reference in a new issue