|
|
@ -96,7 +96,7 @@ function selectSource(selectType) { |
|
|
|
getListData("yi",selectType).forEach(it=>{ |
|
|
|
getListData("yi",selectType).forEach(it=>{ |
|
|
|
if(sourcenames.indexOf(it.name)==-1){ |
|
|
|
if(sourcenames.indexOf(it.name)==-1){ |
|
|
|
if(Juconfig[runMode+'sourcename'] == it.name){ |
|
|
|
if(Juconfig[runMode+'sourcename'] == it.name){ |
|
|
|
it.name = it.name + '√'; |
|
|
|
it.name = '‘‘’’<span style="color:red">'+it.name+'√</span>'; |
|
|
|
} |
|
|
|
} |
|
|
|
sourcenames.push({title: it.name, icon: it.img}); |
|
|
|
sourcenames.push({title: it.name, icon: it.img}); |
|
|
|
} |
|
|
|
} |
|
|
@ -107,8 +107,8 @@ function selectSource(selectType) { |
|
|
|
if(getItem('sourceListSort','update') == 'name'){ |
|
|
|
if(getItem('sourceListSort','update') == 'name'){ |
|
|
|
//sourcenames.sort(SortList);
|
|
|
|
//sourcenames.sort(SortList);
|
|
|
|
sourcenames = sortByPinyin(sourcenames); |
|
|
|
sourcenames = sortByPinyin(sourcenames); |
|
|
|
} |
|
|
|
}//,sourcenames[sourcename]
|
|
|
|
return $(sourcenames,3,selectType+">主页源>"+sourcename,sourcenames[sourcename]).select((runMode,sourcename,cfgfile,Juconfig) => { |
|
|
|
return $(sourcenames,3,selectType+">主页源>"+sourcename).select((runMode,sourcename,cfgfile,Juconfig) => { |
|
|
|
|
|
|
|
|
|
|
|
input = input.replace(/‘|’|“|”|<[^>]+>/g,"").replace(/(.*)√/,'$1'); |
|
|
|
input = input.replace(/‘|’|“|”|<[^>]+>/g,"").replace(/(.*)√/,'$1'); |
|
|
|
if(Juconfig["runMode"] == runMode && input==Juconfig[runMode+'sourcename']){ |
|
|
|
if(Juconfig["runMode"] == runMode && input==Juconfig[runMode+'sourcename']){ |
|
|
|