更新 'SrcJyPublic.js'

master
src48597962 7 months ago
parent 7b8f5bb184
commit a0c0be616d
  1. 5
      SrcJyPublic.js

@ -621,11 +621,12 @@ function selectSource() {
}, },
click(s, i, manage) { click(s, i, manage) {
pop.dismiss(); pop.dismiss();
/*
let input = s.replace(/[’‘]|<[^>]*>/g, ""); let input = s.replace(/[’‘]|<[^>]*>/g, "");
if(tmpList[i].name==input){ if(tmpList[i].name==input){
Juconfig["homeSource"] = tmpList[i]; Juconfig["homeSource"] = tmpList[i];
writeFile(cfgfile, JSON.stringify(Juconfig)); writeFile(cfgfile, JSON.stringify(Juconfig));
/*
clearMyVar('SrcJu_dianbo$分类'); clearMyVar('SrcJu_dianbo$分类');
clearMyVar('SrcJu_dianbo$fold'); clearMyVar('SrcJu_dianbo$fold');
clearMyVar('SrcJu_dianbo$classCache'); clearMyVar('SrcJu_dianbo$classCache');
@ -635,11 +636,11 @@ function selectSource() {
let key = tmpList[i].url; let key = tmpList[i].url;
setJkSort(key, 1); setJkSort(key, 1);
refreshPage(true); refreshPage(true);
*/
return 'toast://' + '主页源已设置为:' + input; return 'toast://' + '主页源已设置为:' + input;
}else{ }else{
return 'toast://源列表索引异常' return 'toast://源列表索引异常'
} }
*/
}, },
menuClick(manage) { menuClick(manage) {
hikerPop.selectCenter({ hikerPop.selectCenter({

Loading…
Cancel
Save