From 3752f19cfbde338156221559404ace6ddb6d50b4 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 21 Jul 2024 15:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index d7662d4d..989a29a0 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -441,9 +441,8 @@ function selectSource() { hint: "源关键字筛选,右边切换分组", title: sourceGroup || "全部", onChange(s, manage) { - //log("onChange:"+s); - let flist = names.filter(x => x.toLowerCase().includes(s.toLowerCase())); tmpList = sourceList.filter(x => x.name.toLowerCase().includes(s.toLowerCase())); + let flist = getnames(tmpList).names; manage.list.length = 0; flist.forEach(x => { manage.list.push(x); @@ -462,7 +461,6 @@ function selectSource() { title: "切换源分组", //position: groupnames.indexOf(sourceName), click(s) { - let flist; if(s.startsWith('[')){ inputBox.setTitle('全部'); inputBox.setDefaultValue(s); @@ -496,7 +494,7 @@ function selectSource() { } - flist = getnames(tmpList).names; + let flist = getnames(tmpList).names; manage.list.length = 0; flist.forEach(x => { manage.list.push(x);