更新 'SrcJyPublic.js'

master
src48597962 7 months ago
parent e622b2babb
commit 3752f19cfb
  1. 6
      SrcJyPublic.js

@ -441,9 +441,8 @@ function selectSource() {
hint: "源关键字筛选,右边切换分组", hint: "源关键字筛选,右边切换分组",
title: sourceGroup || "全部", title: sourceGroup || "全部",
onChange(s, manage) { 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())); tmpList = sourceList.filter(x => x.name.toLowerCase().includes(s.toLowerCase()));
let flist = getnames(tmpList).names;
manage.list.length = 0; manage.list.length = 0;
flist.forEach(x => { flist.forEach(x => {
manage.list.push(x); manage.list.push(x);
@ -462,7 +461,6 @@ function selectSource() {
title: "切换源分组", title: "切换源分组",
//position: groupnames.indexOf(sourceName), //position: groupnames.indexOf(sourceName),
click(s) { click(s) {
let flist;
if(s.startsWith('[')){ if(s.startsWith('[')){
inputBox.setTitle('全部'); inputBox.setTitle('全部');
inputBox.setDefaultValue(s); inputBox.setDefaultValue(s);
@ -496,7 +494,7 @@ function selectSource() {
} }
flist = getnames(tmpList).names; let flist = getnames(tmpList).names;
manage.list.length = 0; manage.list.length = 0;
flist.forEach(x => { flist.forEach(x => {
manage.list.push(x); manage.list.push(x);

Loading…
Cancel
Save