GH-66816: Removes disable before return

Passing --disable-per-crate-search removes the create search
inputs so moved code around so that the search input is enabled
first before the function returns
This commit is contained in:
asrar 2020-08-29 09:33:41 +00:00
parent d8424f6b42
commit 7ee515579e

View file

@ -2740,6 +2740,10 @@ function defocusSearchBar() {
}
window.addSearchOptions = function(crates) {
if (search_input) {
search_input.removeAttribute('disabled');
}
var elem = document.getElementById("crate-search");
if (!elem) {
@ -2781,9 +2785,6 @@ function defocusSearchBar() {
}
}
if (search_input) {
search_input.removeAttribute('disabled');
}
};
function buildHelperPopup() {