private initEventListener(): void {
this.form.addEventListener("submit", (event) => {
event.preventDefault();
- this.search();
+ void this.search();
});
this.typeInput.addEventListener("change", () => this.changeType());
}
private initQueryString(): void {
const url = new URL(window.location.href);
url.searchParams.forEach((value, key) => {
- let element = this.form.elements[key] as HTMLElement;
+ const element = this.form.elements[key] as HTMLElement;
if (value && element) {
if (element instanceof RadioNodeList) {
let id = "";
});
this.typeInput.dispatchEvent(new Event("change"));
- this.search();
+ void this.search();
}
private initPagination(position: "top" | "bottom"): void {
maxPage: this.pages,
callbackSwitch: (pageNo) => {
- this.changePage(pageNo);
+ void this.changePage(pageNo);
},
});
}
this.initPagination("top");
}
- const fragment = DomUtil.createFragmentFromHtml(template!);
+ const fragment = DomUtil.createFragmentFromHtml(template);
this.form.parentElement!.appendChild(fragment);
if (this.pages > 1) {
initEventListener() {
this.form.addEventListener("submit", (event) => {
event.preventDefault();
- this.search();
+ void this.search();
});
this.typeInput.addEventListener("change", () => this.changeType());
}
initQueryString() {
const url = new URL(window.location.href);
url.searchParams.forEach((value, key) => {
- let element = this.form.elements[key];
+ const element = this.form.elements[key];
if (value && element) {
if (element instanceof RadioNodeList) {
let id = "";
}
});
this.typeInput.dispatchEvent(new Event("change"));
- this.search();
+ void this.search();
}
initPagination(position) {
const wrapperDiv = document.createElement("div");
activePage: this.activePage,
maxPage: this.pages,
callbackSwitch: (pageNo) => {
- this.changePage(pageNo);
+ void this.changePage(pageNo);
},
});
}
{
parent::readParameters();
- if (!empty($_REQUEST['extended'])) $this->extended = true;
+ if (!empty($_REQUEST['extended'])) {
+ $this->extended = true;
+ }
}
/**
foreach (SearchEngine::getInstance()->getAvailableObjectTypes() as $objectType) {
if ($objectType instanceof ISearchProvider) {
$objectType->assignVariables();
- }
- else {
+ } else {
$objectType->show();
}
}
/* search form */
.searchBar {
display: grid;
-
+
@include screen-md-up {
column-gap: 20px;
grid-template-columns: 60% 20% auto;
}
.searchFilters {
- margin-top: 20px;
+ margin-top: 20px;
}
@include screen-md-up {