Remove content when an article is dismissed
This commit is contained in:
parent
638abcecea
commit
abba5dd4d4
|
@ -1611,6 +1611,10 @@ function dismissArticle(id) {
|
||||||
|
|
||||||
new Effect.Fade(elem, {duration : 0.5});
|
new Effect.Fade(elem, {duration : 0.5});
|
||||||
|
|
||||||
|
// Remove the content, too
|
||||||
|
var elem_content = $("CICD-" + id);
|
||||||
|
Element.remove(elem_content);
|
||||||
|
|
||||||
if (id == getActiveArticleId()) {
|
if (id == getActiveArticleId()) {
|
||||||
setActiveArticleId(0);
|
setActiveArticleId(0);
|
||||||
}
|
}
|
||||||
|
@ -1634,6 +1638,10 @@ function dismissSelectedArticles() {
|
||||||
ids[i] != getActiveArticleId()) {
|
ids[i] != getActiveArticleId()) {
|
||||||
new Effect.Fade(elem, {duration : 0.5});
|
new Effect.Fade(elem, {duration : 0.5});
|
||||||
sel.push(ids[i]);
|
sel.push(ids[i]);
|
||||||
|
|
||||||
|
// Remove the content, too
|
||||||
|
var elem_content = $("CICD-" + ids[i]);
|
||||||
|
Element.remove(elem_content);
|
||||||
} else {
|
} else {
|
||||||
tmp.push(ids[i]);
|
tmp.push(ids[i]);
|
||||||
}
|
}
|
||||||
|
@ -1661,6 +1669,10 @@ function dismissReadArticles() {
|
||||||
!elem.hasClassName("Selected")) {
|
!elem.hasClassName("Selected")) {
|
||||||
|
|
||||||
new Effect.Fade(elem, {duration : 0.5});
|
new Effect.Fade(elem, {duration : 0.5});
|
||||||
|
|
||||||
|
// Remove the content, too
|
||||||
|
var elem_content = $("CICD-" + ids[i]);
|
||||||
|
Element.remove(elem_content);
|
||||||
} else {
|
} else {
|
||||||
tmp.push(ids[i]);
|
tmp.push(ids[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue