Remove author search handler
This commit is contained in:
parent
4dcc5dea55
commit
8dd49d3a8c
|
@ -1,6 +0,0 @@
|
|||
export function authorSearchHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
||||
const author = document.querySelector<HTMLInputElement>('#author')?.value;
|
||||
window.location.href = `/inbox/${encodeURIComponent(author)}`;
|
||||
}
|
|
@ -6,8 +6,7 @@ import { deleteAllAuthorQuestionsHandler, deleteAllQuestionsHandler } from './de
|
|||
export default (): void => {
|
||||
registerEvents([
|
||||
{ type: 'click', target: '#ib-delete-all', handler: deleteAllQuestionsHandler, global: true },
|
||||
{ type: 'click', target: '#ib-delete-all-author', handler: deleteAllAuthorQuestionsHandler, global: true },
|
||||
{ type: 'submit', target: '#author-form', handler: authorSearchHandler, global: true }
|
||||
{ type: 'click', target: '#ib-delete-all-author', handler: deleteAllAuthorQuestionsHandler, global: true }
|
||||
]);
|
||||
|
||||
registerInboxEntryEvents();
|
||||
|
|
Loading…
Reference in New Issue