Skip to content

Commit

Permalink
解析后预加载频道匹配结果
Browse files Browse the repository at this point in the history
  • Loading branch information
taksssss committed Aug 29, 2024
1 parent babe783 commit 75cb955
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions epg/manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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('<?php echo $_SERVER['PHP_SELF']; ?>?get_channel_match=true', updateChannelMatchList);
if (!$popup) {
return;
}
document.getElementById("moreSettingModal").style.display = "none";
break;
case 'moresetting':
modal = document.getElementById("moreSettingModal");
Expand Down Expand Up @@ -809,6 +812,9 @@ function filterChannels() {

// 保存到数据库
saveAndUpdateConfig($doUpdate = false);

// 预加载频道匹配结果
showModal('channelmatch', $popup = false);
}

// 保存数据并更新配置
Expand Down

0 comments on commit 75cb955

Please sign in to comment.