private readonly queryInput: HTMLInputElement;
private readonly typeInput: HTMLSelectElement;
private readonly usernameInput: HTMLInputElement;
- private searchID: number | undefined;
+ private readonly delimiter: HTMLDivElement;
+ private searchID: number | undefined = undefined;
private pages = 0;
private activePage = 1;
private lastSearchRequest: AbortController | undefined = undefined;
private lastSearchResultRequest: AbortController | undefined = undefined;
- private delimiter: HTMLDivElement;
private searchParameters: SearchParameters = [];
constructor() {
this.queryInput = document.getElementById("searchQuery") as HTMLInputElement;
this.typeInput = document.getElementById("searchType") as HTMLSelectElement;
this.usernameInput = document.getElementById("searchAuthor") as HTMLInputElement;
+ this.delimiter = document.createElement("div");
- this.initDelimiter();
+ this.form.insertAdjacentElement("afterend", this.delimiter);
this.initEventListener();
this.initKeywordSuggestions();
this.initQueryString();
}
- private initDelimiter(): void {
- this.delimiter = document.createElement("div");
- this.form.insertAdjacentElement("afterend", this.delimiter);
- }
-
private initEventListener(): void {
this.form.addEventListener("submit", (event) => {
event.preventDefault();
UiScroll = tslib_1.__importStar(UiScroll);
class UiSearchExtended {
constructor() {
+ this.searchID = undefined;
this.pages = 0;
this.activePage = 1;
this.lastSearchRequest = undefined;
this.queryInput = document.getElementById("searchQuery");
this.typeInput = document.getElementById("searchType");
this.usernameInput = document.getElementById("searchAuthor");
- this.initDelimiter();
+ this.delimiter = document.createElement("div");
+ this.form.insertAdjacentElement("afterend", this.delimiter);
this.initEventListener();
this.initKeywordSuggestions();
this.initQueryString();
}
- initDelimiter() {
- this.delimiter = document.createElement("div");
- this.form.insertAdjacentElement("afterend", this.delimiter);
- }
initEventListener() {
this.form.addEventListener("submit", (event) => {
event.preventDefault();