Browse Source

解决清空搜索没有重置属性预览的问题

tags/v32.1
枫谷剑仙 3 years ago
parent
commit
a502e6936e
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      script.js
  2. +1
    -1
      service-worker.js

+ 4
- 1
script.js View File

@@ -4048,7 +4048,10 @@ function initialize() {
searchMonList.classList.add(className_displayNone);
};
searchClear.onclick = function() { //清空搜索选项
s_attr_lists.forEach(list=>list[0].checked = true);
s_attr_lists.forEach(list=>{
list[0].checked = true;
list[0].onclick();
});
s_types.forEach(t => {
t.checked = false;
});


+ 1
- 1
service-worker.js View File

@@ -8099,7 +8099,7 @@ const cachesMap = new Map([
],
[
"script.js",
"8e2721c60da9850723877afb5574f4fb"
"8e70135adf0b3e16291ca345aa48ab2c"
],
[
"solo.html",


Loading…
Cancel
Save