From 2a8ced263e461c685f5a7d369195912e85d0a4e8 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 7 Jan 2019 12:14:37 +0100 Subject: [PATCH] RepoControls now highlights search text again --- Plugins/RepoControls/RepoControls.plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugins/RepoControls/RepoControls.plugin.js b/Plugins/RepoControls/RepoControls.plugin.js index 123b80d800..3fb193b929 100644 --- a/Plugins/RepoControls/RepoControls.plugin.js +++ b/Plugins/RepoControls/RepoControls.plugin.js @@ -112,7 +112,7 @@ class RepoControls { getDescription () {return "Lets you sort and filter your list of downloaded Themes and Plugins.";} - getVersion () {return "1.2.2";} + getVersion () {return "1.2.3";} getAuthor () {return "DevilBro";} @@ -315,6 +315,7 @@ class RepoControls { } sortEntries (container, repoControls) { + if (typeof container.entries != "object") return; let searchstring = repoControls.find(BDFDB.dotCN.searchbarinput).val().replace(/[<|>]/g, "").toUpperCase(); let sortings = BDFDB.getAllData(this, "sortings"); @@ -326,6 +327,7 @@ class RepoControls { let name = li.getAttribute("data-name"); let pos = entrypositions.indexOf(name); if (pos > -1) { + this.changeTextToHTML(li, searchstring); li.style.removeProperty("display"); li.style.setProperty("order", pos, "important"); $(li)