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:
parent
d8424f6b42
commit
7ee515579e
@ -2740,6 +2740,10 @@ function defocusSearchBar() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.addSearchOptions = function(crates) {
|
window.addSearchOptions = function(crates) {
|
||||||
|
if (search_input) {
|
||||||
|
search_input.removeAttribute('disabled');
|
||||||
|
}
|
||||||
|
|
||||||
var elem = document.getElementById("crate-search");
|
var elem = document.getElementById("crate-search");
|
||||||
|
|
||||||
if (!elem) {
|
if (!elem) {
|
||||||
@ -2781,9 +2785,6 @@ function defocusSearchBar() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (search_input) {
|
|
||||||
search_input.removeAttribute('disabled');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function buildHelperPopup() {
|
function buildHelperPopup() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user