Skip to content

Commit

Permalink
Update docsearch.bundle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaliIthapeTG authored Jan 3, 2025
1 parent 056f8e0 commit 888ffc9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/js/vendor/docsearch.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function activateSearch (docsearch, config) {
//Setting "Latest" checkbox to "true" or "checked"
if (window.localStorage.getItem(SEARCH_FILTER_ACTIVE_KEY1) === null) {
window.localStorage.setItem(SEARCH_FILTER_ACTIVE_KEY1, 'true') // Set default as 'true'
window.localStorage.setItem(SEARCH_FILTER_ACTIVE_KEY1, 'false') // Set default as 'true'
}
appendStylesheet(config.stylesheet)
var baseAlgoliaOptions = {
Expand Down Expand Up @@ -50,7 +50,7 @@
},
baseAlgoliaOptions: baseAlgoliaOptions,
})
document.querySelector('.filter1').style.display = 'none';

var input = controller.input
var typeahead = input.data('aaAutocomplete')
var dropdown = typeahead.dropdown
Expand All @@ -76,11 +76,11 @@
.find('.filter input')
.on('change', toggleFilter.bind(typeahead))
.prop('checked', window.localStorage.getItem(SEARCH_FILTER_ACTIVE_KEY) === 'true')
// typeahead.$facetFilterInput1 = input
// .closest('#' + searchField.id)
// .find('.filter1 input')
// .on('change', toggleFilter.bind(typeahead))
// .prop('checked', window.localStorage.getItem(SEARCH_FILTER_ACTIVE_KEY1) === 'true')
typeahead.$facetFilterInput1 = input
.closest('#' + searchField.id)
.find('.filter1 input')
.on('change', toggleFilter.bind(typeahead))
.prop('checked', window.localStorage.getItem(SEARCH_FILTER_ACTIVE_KEY1) === 'true')
menu.find('.ds-pagination--prev').on('click', paginate.bind(typeahead, -1)).css('visibility', 'hidden')
menu.find('.ds-pagination--next').on('click', paginate.bind(typeahead, 1)).css('visibility', 'hidden')
monitorCtrlKey.call(typeahead)
Expand Down

0 comments on commit 888ffc9

Please sign in to comment.