From 6d8bf3a08ac1f779b16b09e2be8642cddc30ba8b Mon Sep 17 00:00:00 2001 From: j433866 Date: Tue, 30 Apr 2019 14:45:34 +0100 Subject: [PATCH] Enable filter buttons in manager --- src/web/InputWorker.mjs | 2 +- src/web/Manager.mjs | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/web/InputWorker.mjs b/src/web/InputWorker.mjs index 56943fd1..37df4de0 100644 --- a/src/web/InputWorker.mjs +++ b/src/web/InputWorker.mjs @@ -697,4 +697,4 @@ self.filterTabs = function(searchData) { action: "displayTabSearchResults", data: inputs }); -} +}; diff --git a/src/web/Manager.mjs b/src/web/Manager.mjs index 18680a38..b4191519 100755 --- a/src/web/Manager.mjs +++ b/src/web/Manager.mjs @@ -161,20 +161,20 @@ class Manager { document.getElementById("btn-previous-input-tab").addEventListener("click", this.input.changeTabLeft.bind(this.input)); document.getElementById("btn-next-input-tab").addEventListener("click", this.input.changeTabRight.bind(this.input)); document.getElementById("btn-go-to-input-tab").addEventListener("click", this.input.goToTab.bind(this.input)); - // document.getElementById("btn-find-input-tab").addEventListener("click", this.input.findTab.bind(this.input)); + document.getElementById("btn-find-input-tab").addEventListener("click", this.input.findTab.bind(this.input)); this.addDynamicListener("#input-tabs li .btn-close-tab i", "click", this.input.removeTabClick, this.input); this.addDynamicListener("#input-tabs li .input-tab-content", "click", this.input.changeTabClick, this.input); - // document.getElementById("input-show-pending").addEventListener("change", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-show-loading").addEventListener("change", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-show-loaded").addEventListener("change", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-filename-filter").addEventListener("change", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-filename-filter").addEventListener("keyup", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-content-filter").addEventListener("change", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-content-filter").addEventListener("keyup", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-num-results").addEventListener("change", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-num-results").addEventListener("keyup", this.input.filterTabSearch.bind(this.input)); - // document.getElementById("input-filter-refresh").addEventListener("click", this.input.filterTabSearch.bind(this.input)); - // this.addDynamicListener(".input-filter-result", "click", this.input.filterItemClick, this.input); + document.getElementById("input-show-pending").addEventListener("change", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-show-loading").addEventListener("change", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-show-loaded").addEventListener("change", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-filename-filter").addEventListener("change", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-filename-filter").addEventListener("keyup", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-content-filter").addEventListener("change", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-content-filter").addEventListener("keyup", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-num-results").addEventListener("change", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-num-results").addEventListener("keyup", this.input.filterTabSearch.bind(this.input)); + document.getElementById("input-filter-refresh").addEventListener("click", this.input.filterTabSearch.bind(this.input)); + this.addDynamicListener(".input-filter-result", "click", this.input.filterItemClick, this.input); document.getElementById("btn-open-file").addEventListener("click", this.input.inputOpenClick.bind(this.input)); document.getElementById("btn-open-folder").addEventListener("click", this.input.folderOpenClick.bind(this.input));