vrfs988: updated #query on new search; added semicolons
This commit is contained in:
parent
74e95ad908
commit
68b0fd92d6
|
|
@ -72,8 +72,8 @@
|
|||
}
|
||||
|
||||
context.JK.SearchResultScreen.onSearchSuccess = function(response) {
|
||||
searchResults(response, true)
|
||||
searchResults(response, false)
|
||||
searchResults(response, true);
|
||||
searchResults(response, false);
|
||||
}
|
||||
|
||||
function searchResults(response, isSidebar) {
|
||||
|
|
@ -128,6 +128,7 @@
|
|||
}
|
||||
resultDivVisibility(val, isSidebar);
|
||||
});
|
||||
|
||||
} else if (response.search_type === 'bands') {
|
||||
resultCount = response.bands.length;
|
||||
template_name = isSidebar ? "#template-bands-sidebar-search-result" : "#template-bands-search-result";
|
||||
|
|
@ -144,6 +145,7 @@
|
|||
$(selector).append(searchResultHtml);
|
||||
resultDivVisibility(val, isSidebar);
|
||||
});
|
||||
|
||||
} else if (response.search_type === 'fans') {
|
||||
resultCount = response.fans.length;
|
||||
template_name = isSidebar ? "#template-fans-sidebar-search-result" : "#template-fans-search-result";
|
||||
|
|
|
|||
|
|
@ -367,6 +367,8 @@
|
|||
return hideSearchResults();
|
||||
}
|
||||
if (query.length > 2) {
|
||||
// FIXME: this is in searchResults
|
||||
$('#query').html(query);
|
||||
query += '&search_text_type='+$('#search_text_type').val();
|
||||
emptySearchResults();
|
||||
search(query);
|
||||
|
|
|
|||
Loading…
Reference in New Issue