fix: la ricerca fulltext parte solamente alla pressione del pulsante invio. feat: aggiunta possibilità di specificare una data per le nuove note.
This commit is contained in:
@@ -156,20 +156,8 @@ const App = {
|
||||
}
|
||||
};
|
||||
|
||||
let timeout;
|
||||
searchInput.addEventListener('input', () => {
|
||||
toggleClearBtn();
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => {
|
||||
const hash = window.location.hash;
|
||||
if (hash.startsWith('#/tickets') && !hash.includes('/new') && !hash.match(/#\/tickets\/\d+/)) {
|
||||
TicketListView.currentPage = 1;
|
||||
TicketListView.render();
|
||||
} else {
|
||||
// Navigate to ticket list with search
|
||||
window.location.hash = '#/tickets';
|
||||
}
|
||||
}, 350);
|
||||
});
|
||||
|
||||
searchInput.addEventListener('keydown', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user