mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-11 04:06:37 +08:00
修复瀑布流下滑删除按钮没有出现
This commit is contained in:
Vendored
+3
-3
@@ -8977,7 +8977,7 @@ ${err.stack}` : "");
|
|||||||
title="点击查看匹配详情">匹配${matchList.length}个</a>`);
|
title="点击查看匹配详情">匹配${matchList.length}个</a>`);
|
||||||
const $deleteBtn = $box2.find(".delete115Svg");
|
const $deleteBtn = $box2.find(".delete115Svg");
|
||||||
const $markBtn = $box2.find(".markDeleteSvg");
|
const $markBtn = $box2.find(".markDeleteSvg");
|
||||||
if ($deleteBtn.length > 0 && matchList[0].dirId) {
|
if ($deleteBtn.length > 0 && matchList.some((m) => m.dirId != null)) {
|
||||||
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
||||||
$deleteBtn.show();
|
$deleteBtn.show();
|
||||||
}
|
}
|
||||||
@@ -9194,7 +9194,7 @@ ${err.stack}` : "");
|
|||||||
title="${title}">匹配${matchList.length}个</a>`);
|
title="${title}">匹配${matchList.length}个</a>`);
|
||||||
const $deleteBtn = $box2.find(".delete115Svg");
|
const $deleteBtn = $box2.find(".delete115Svg");
|
||||||
const $markBtn = $box2.find(".markDeleteSvg");
|
const $markBtn = $box2.find(".markDeleteSvg");
|
||||||
if ($deleteBtn.length > 0 && matchList[0].dirId) {
|
if ($deleteBtn.length > 0 && matchList.some((m) => m.dirId != null)) {
|
||||||
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
||||||
$deleteBtn.show();
|
$deleteBtn.show();
|
||||||
}
|
}
|
||||||
@@ -12164,9 +12164,9 @@ ${err.stack}` : "");
|
|||||||
this.replaceHdImg();
|
this.replaceHdImg();
|
||||||
this.addJumpPageControl();
|
this.addJumpPageControl();
|
||||||
this.fixBusTitleBox();
|
this.fixBusTitleBox();
|
||||||
|
this.getBean("CoverButtonPlugin").addSvgBtn().then();
|
||||||
await this.doFilter();
|
await this.doFilter();
|
||||||
await this.getBean("ListPageButtonPlugin").sortItems();
|
await this.getBean("ListPageButtonPlugin").sortItems();
|
||||||
this.getBean("CoverButtonPlugin").addSvgBtn().then();
|
|
||||||
$(this.getSelector().itemSelector + " a").attr("target", "_blank");
|
$(this.getSelector().itemSelector + " a").attr("target", "_blank");
|
||||||
this.getBean("AutoPagePlugin").checkLoad();
|
this.getBean("AutoPagePlugin").checkLoad();
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ class ListPagePlugin extends BasePlugin {
|
|||||||
this.replaceHdImg();
|
this.replaceHdImg();
|
||||||
this.addJumpPageControl();
|
this.addJumpPageControl();
|
||||||
this.fixBusTitleBox();
|
this.fixBusTitleBox();
|
||||||
|
this.getBean("CoverButtonPlugin").addSvgBtn().then();
|
||||||
await this.doFilter();
|
await this.doFilter();
|
||||||
await this.getBean("ListPageButtonPlugin").sortItems();
|
await this.getBean("ListPageButtonPlugin").sortItems();
|
||||||
this.getBean("CoverButtonPlugin").addSvgBtn().then();
|
|
||||||
$(this.getSelector().itemSelector + " a").attr("target", "_blank");
|
$(this.getSelector().itemSelector + " a").attr("target", "_blank");
|
||||||
this.getBean("AutoPagePlugin").checkLoad();
|
this.getBean("AutoPagePlugin").checkLoad();
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ const _WangPan115MatchPlugin = class _WangPan115MatchPlugin extends BasePlugin {
|
|||||||
$box2.find(".jhs-match-btn").replaceWith(`<a class='jhs-match-btn a-success' \n data-keyword="${carNum2}"\n data-match='${JSON.stringify(matchList)}'\n title="点击查看匹配详情">匹配${matchList.length}个</a>`);
|
$box2.find(".jhs-match-btn").replaceWith(`<a class='jhs-match-btn a-success' \n data-keyword="${carNum2}"\n data-match='${JSON.stringify(matchList)}'\n title="点击查看匹配详情">匹配${matchList.length}个</a>`);
|
||||||
const $deleteBtn = $box2.find(".delete115Svg");
|
const $deleteBtn = $box2.find(".delete115Svg");
|
||||||
const $markBtn = $box2.find(".markDeleteSvg");
|
const $markBtn = $box2.find(".markDeleteSvg");
|
||||||
if ($deleteBtn.length > 0 && matchList[0].dirId) {
|
if ($deleteBtn.length > 0 && matchList.some(m => m.dirId != null)) {
|
||||||
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
||||||
$deleteBtn.show();
|
$deleteBtn.show();
|
||||||
}
|
}
|
||||||
@@ -569,7 +569,7 @@ const _WangPan115MatchPlugin = class _WangPan115MatchPlugin extends BasePlugin {
|
|||||||
$box2.find(".video-title").prepend(`<a class='jhs-match-btn a-success' \n data-keyword="${carNum2}"\n data-match='${JSON.stringify(matchList)}'\n title="${title}">匹配${matchList.length}个</a>`);
|
$box2.find(".video-title").prepend(`<a class='jhs-match-btn a-success' \n data-keyword="${carNum2}"\n data-match='${JSON.stringify(matchList)}'\n title="${title}">匹配${matchList.length}个</a>`);
|
||||||
const $deleteBtn = $box2.find(".delete115Svg");
|
const $deleteBtn = $box2.find(".delete115Svg");
|
||||||
const $markBtn = $box2.find(".markDeleteSvg");
|
const $markBtn = $box2.find(".markDeleteSvg");
|
||||||
if ($deleteBtn.length > 0 && matchList[0].dirId) {
|
if ($deleteBtn.length > 0 && matchList.some(m => m.dirId != null)) {
|
||||||
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
$deleteBtn.attr("data-match", JSON.stringify(matchList));
|
||||||
$deleteBtn.show();
|
$deleteBtn.show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user