Bug 34106: Update header search box searchtype when form is submitted
We're updating the side menu searchtype when the search header is submitted, we should also update the searchtype in the search header when the form is submitted Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitb9ffc47100
) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit252f297a5a
) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
fc6d2d4dd7
commit
0bc90deeee
1 changed files with 5 additions and 0 deletions
|
@ -655,6 +655,7 @@
|
|||
}, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters);
|
||||
|
||||
$("#patron_search_form").on('submit', filter);
|
||||
$("#patron_search_form").on('submit', update_search_type);
|
||||
$(".filterByLetter").on("click",function(e){
|
||||
e.preventDefault();
|
||||
filterByFirstLetterSurname($(this).text(), true);
|
||||
|
@ -714,6 +715,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
function update_search_type(){
|
||||
$("#searchtype").val($("#searchtype_filter").val());
|
||||
}
|
||||
|
||||
function update_search_description(){
|
||||
var searched = $("#searchfieldstype_filter").find("option:selected").text();
|
||||
if ( $("#search_patron_filter").val() ) {
|
||||
|
|
Loading…
Reference in a new issue