- added csv import
- added somewhat real stats to dashboard - basic search logic
This commit is contained in:
12
static/js/searchBox.js
Normal file
12
static/js/searchBox.js
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user