fix: [main] Prevent setting listeners if dependencies are not loaded
parent
e22068ec90
commit
7f9418639e
|
@ -279,10 +279,12 @@ $(document).ready(() => {
|
|||
overloadBSDropdown();
|
||||
addSupportOfNestedDropdown();
|
||||
|
||||
if (window.debounce) {
|
||||
const debouncedGlobalSearch = debounce(performGlobalSearch, 400)
|
||||
$('#globalSearch')
|
||||
.keydown(debouncedGlobalSearch)
|
||||
.keydown(focusSearchResults);
|
||||
}
|
||||
|
||||
$('.lock-sidebar a.btn-lock-sidebar').click(() => {
|
||||
const $sidebar = $('.sidebar')
|
||||
|
|
Loading…
Reference in New Issue