mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:55:55 +00:00
Add some checks to see if the content element exists
This *might* help dismissal not break when not using combined mode.
This commit is contained in:
@@ -1613,7 +1613,9 @@ function dismissArticle(id) {
|
|||||||
|
|
||||||
// Remove the content, too
|
// Remove the content, too
|
||||||
var elem_content = $("CICD-" + id);
|
var elem_content = $("CICD-" + id);
|
||||||
|
if (elem_content) {
|
||||||
Element.remove(elem_content);
|
Element.remove(elem_content);
|
||||||
|
}
|
||||||
|
|
||||||
if (id == getActiveArticleId()) {
|
if (id == getActiveArticleId()) {
|
||||||
setActiveArticleId(0);
|
setActiveArticleId(0);
|
||||||
@@ -1641,7 +1643,9 @@ function dismissSelectedArticles() {
|
|||||||
|
|
||||||
// Remove the content, too
|
// Remove the content, too
|
||||||
var elem_content = $("CICD-" + ids[i]);
|
var elem_content = $("CICD-" + ids[i]);
|
||||||
|
if (elem_content) {
|
||||||
Element.remove(elem_content);
|
Element.remove(elem_content);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
tmp.push(ids[i]);
|
tmp.push(ids[i]);
|
||||||
}
|
}
|
||||||
@@ -1672,7 +1676,9 @@ function dismissReadArticles() {
|
|||||||
|
|
||||||
// Remove the content, too
|
// Remove the content, too
|
||||||
var elem_content = $("CICD-" + ids[i]);
|
var elem_content = $("CICD-" + ids[i]);
|
||||||
|
if (elem_content) {
|
||||||
Element.remove(elem_content);
|
Element.remove(elem_content);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
tmp.push(ids[i]);
|
tmp.push(ids[i]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user