|
|
@@ -237,6 +237,9 @@ function mark_favorite(active) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+var freshrssOpenArticleEvent = document.createEvent('Event');
|
|
|
+freshrssOpenArticleEvent.initEvent('freshrss:openArticle', true, true);
|
|
|
+
|
|
|
function toggleContent(new_active, old_active, skipping) {
|
|
|
// If skipping, move current without activating or marking as read
|
|
|
if (new_active.length === 0) {
|
|
|
@@ -299,8 +302,11 @@ function toggleContent(new_active, old_active, skipping) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (context.auto_mark_article && new_active.hasClass('active') && !skipping) {
|
|
|
- mark_read(new_active, true);
|
|
|
+ if (new_active.hasClass('active') && !skipping) {
|
|
|
+ if (context.auto_mark_article) {
|
|
|
+ mark_read(new_active, true);
|
|
|
+ }
|
|
|
+ new_active[0].dispatchEvent(freshrssOpenArticleEvent);
|
|
|
}
|
|
|
}
|
|
|
|