From 0bc57e96cc45a4fdb66c934c8c06c938c54f8c6b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 7 Jun 2024 15:45:14 +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 | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index f07e8bdd..ecea18b2 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -191,7 +191,7 @@ function selectSource() { toPosition: index, extraInputBox: new hikerPop.ResExtraInputBox({ hint: "源关键字", - title: "ok", + title: sourceGroup || "全部", onChange(s, manage) { //log("onChange:"+s); let flist = names.filter(x => x.includes(s)); @@ -204,8 +204,21 @@ function selectSource() { }, defaultValue: "", click(s, manage) { - //toast(s); - //log(manage.list); + let groupnames = getJiekouGroups(sourceAllList); + + //inputBox.setHint("不好了"); + showSelectOptions({ + title: "切换源分组", + options: groupnames, + col: 2, + js: $.toString(() => { + inputBox.setTitle(input); + inputBox.setDefaultValue(""); + let sourceList = getGroupLists(sourceAllList, input); + manage.list = sourceList; + manage.change(); + }) + }); }, titleVisible: false }),