From 855eb973c4e1af3648db3d89a86860c5be1d5068 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 31 Jan 2024 22:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuSet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuSet.js | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/SrcJuSet.js b/SrcJuSet.js index 96c9f4b5..3096abd6 100644 --- a/SrcJuSet.js +++ b/SrcJuSet.js @@ -664,16 +664,27 @@ function jiekouapi(sourcefile, data, look) { }) } }); + + let groupNames = getGroupNames(); + groupNames.push("自定义"); d.push({ title: '搜索分组:'+ getMyVar('SrcJu_jiekougroup',''), - col_type: 'input', - desc:"搜索分组可留空,强制搜索输入全全", + col_type: 'text_1', + url: $(groupNames,2,"搜索分组:").select(() => { + if(input=="自定义"){ + return $("", "自定义搜索分组名称").input(() => { + putMyVar('SrcJu_jiekougroup',input); + refreshPage(false); + return 'toast://搜索分组已设置为:' + input; + }) + }else{ + putMyVar('SrcJu_jiekougroup',input); + refreshPage(false); + } + return 'toast://搜索分组已设置为:' + input; + }), extra: { - defaultValue: getMyVar('SrcJu_jiekougroup') || "", - titleVisible: false, - onChange: $.toString(() => { - putMyVar('SrcJu_jiekougroup', input); - }) + lineVisible: false } }); d.push({