New expert mode

This commit is contained in:
Stephan Porada
2020-04-14 11:31:57 +02:00
parent 9a1efbe5f3
commit 514baf0f5e
2 changed files with 38 additions and 23 deletions

View File

@ -346,7 +346,8 @@
// live update of hits per page if hits per page value is changed
hitsPerPageInputElement = document.getElementById("display-options-form-results_per_page");
hitsPerPageInputElement.onchange = results.resultsList.changeHitsPerPage;
let changeHitsPerPageBind = results.resultsList.changeHitsPerPage.bind(results.resultsList);
hitsPerPageInputElement.onchange = changeHitsPerPageBind;
// live update of lr context per item if context value is changed
contextPerItemElement = document.getElementById("display-options-form-result_context");
@ -361,7 +362,8 @@
// epxert mode table view
// TODO: Redo this
// TODO: This replicates itself on expertModeSwitchElement use
// - This replicates itself on expertModeSwitchElement use
// - Replication should be fixed
expertModeSwitchElement.addEventListener("change", (event) => {
if (event.target.checked) {
results.resultsList.expertModeOn();