From 75cb9556d2c4d2511d4c0bb9045a36e6610900e7 Mon Sep 17 00:00:00 2001 From: Tak Date: Fri, 30 Aug 2024 00:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=90=8E=E9=A2=84=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=A2=91=E9=81=93=E5=8C=B9=E9=85=8D=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epg/manage.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/epg/manage.php b/epg/manage.php index e4845f3..c1992be 100644 --- a/epg/manage.php +++ b/epg/manage.php @@ -624,7 +624,7 @@ function formatTime(seconds) { $configUpdated = false; } - function showModal(type) { + function showModal(type, $popup = true) { var modal, logSpan, logContent; switch (type) { case 'update': @@ -644,10 +644,13 @@ function showModal(type) { document.getElementById('searchInput').value = ""; // 清空搜索框 break; case 'channelmatch': - document.getElementById("moreSettingModal").style.display = "none"; modal = document.getElementById("channelMatchModal"); logSpan = document.getElementsByClassName("close")[4]; fetchLogs('?get_channel_match=true', updateChannelMatchList); + if (!$popup) { + return; + } + document.getElementById("moreSettingModal").style.display = "none"; break; case 'moresetting': modal = document.getElementById("moreSettingModal"); @@ -809,6 +812,9 @@ function filterChannels() { // 保存到数据库 saveAndUpdateConfig($doUpdate = false); + + // 预加载频道匹配结果 + showModal('channelmatch', $popup = false); } // 保存数据并更新配置