assetflow/static/js/searchBox.js
grey d1d717a988 - added csv import
- added somewhat real stats to dashboard
- basic search logic
2023-05-02 18:23:47 +02:00

12 lines
350 B
JavaScript

document.getElementById("SearchBox").addEventListener("keyup", handleSearchChange);
function handleSearchChange(e) {
console.log(e.target.value);
// Check if known prefix is used (either > or #)
if (e.target.value[0] == ">") {
// Search for commands
} else if (e.target.value[0] == "#") {
// Search for SKU
} else {
// Search for name
}
}