mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
No need to query the API about nothing
This commit is contained in:
@@ -152,6 +152,7 @@ export default function() {
|
||||
dropdown.active(true);
|
||||
|
||||
clearTimeout(searchTimeout);
|
||||
if (typed) {
|
||||
searchTimeout = setTimeout(function() {
|
||||
var typedLower = typed.toLowerCase();
|
||||
if (searched.indexOf(typedLower) === -1) {
|
||||
@@ -162,6 +163,7 @@ export default function() {
|
||||
}
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user