1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 13:10:24 +02:00

No need to query the API about nothing

This commit is contained in:
Toby Zerner
2015-06-19 15:49:20 +09:30
parent 6455d03eb6
commit 80474ec544

View File

@@ -152,6 +152,7 @@ export default function() {
dropdown.active(true); dropdown.active(true);
clearTimeout(searchTimeout); clearTimeout(searchTimeout);
if (typed) {
searchTimeout = setTimeout(function() { searchTimeout = setTimeout(function() {
var typedLower = typed.toLowerCase(); var typedLower = typed.toLowerCase();
if (searched.indexOf(typedLower) === -1) { if (searched.indexOf(typedLower) === -1) {
@@ -162,6 +163,7 @@ export default function() {
} }
}, 250); }, 250);
} }
}
}); });
}); });
} }