GH-66816: Process before enabling search

This commit is contained in:
asrar 2020-08-29 10:19:58 +00:00
parent 7ee515579e
commit eb2bb99021

View File

@ -2739,14 +2739,17 @@ function defocusSearchBar() {
});
}
window.addSearchOptions = function(crates) {
function enableSearchInput() {
if (search_input) {
search_input.removeAttribute('disabled');
}
}
window.addSearchOptions = function(crates) {
var elem = document.getElementById("crate-search");
if (!elem) {
enableSearchInput();
return;
}
var crates_text = [];
@ -2784,7 +2787,7 @@ function defocusSearchBar() {
elem.value = savedCrate;
}
}
enableSearchInput();
};
function buildHelperPopup() {