pull/1395/head
gedoor 3 years ago
parent a881254958
commit 3675d1d6a3
  1. 4
      app/src/main/assets/web/rssSource/index.js

@ -140,9 +140,9 @@ function redo() {
}
function setRule(editRule) {
let checkRule = RuleSources.find(x => x.sourceUrl == editRule.sourceUrl);
if ($(`input[id="${editRule.sourceUrl}"]`)) {
if ($(`input[id="${hex_md5(editRule.sourceUrl)}"]`)) {
Object.keys(checkRule).forEach(key => { checkRule[key] = editRule[key]; });
$(`input[id="${editRule.sourceUrl}"]+*`).innerHTML = `${editRule.sourceName}<br>${editRule.sourceUrl}`;
$(`input[id="${hex_md5(editRule.sourceUrl)}"]+*`).innerHTML = `${editRule.sourceName}<br>${editRule.sourceUrl}`;
} else {
RuleSources.push(editRule);
$('#RuleList').innerHTML += newRule(editRule);

Loading…
Cancel
Save