Mark as read does not reload the page anymore
This commit is contained in:
parent
e2121cc72d
commit
8926a7f6c8
@ -400,6 +400,11 @@
|
||||
refresh_feed(feed_id);
|
||||
break;
|
||||
case 'mark-read':
|
||||
e.preventDefault();
|
||||
var item_id = e.target.getAttribute("data-item-id");
|
||||
mark_as_read(item_id);
|
||||
break;
|
||||
case 'original-link':
|
||||
var item_id = e.target.getAttribute("data-item-id");
|
||||
mark_as_read(item_id);
|
||||
break;
|
||||
|
@ -38,14 +38,20 @@
|
||||
<a id="bookmark-<?= $item_id ?>" href="?action=bookmark&value=1&id=<?= $item_id ?>&redirect=unread&offset=<?= $offset ?>"><?= t('bookmark') ?></a> |
|
||||
<?php endif ?>
|
||||
|
||||
<a href="?action=mark-item-read&id=<?= $item_id ?>&offset=<?= $offset ?>"><?= t('mark as read') ?></a> |
|
||||
<a
|
||||
href="?action=mark-item-read&id=<?= $item_id ?>&offset=<?= $offset ?>"
|
||||
data-action="mark-read"
|
||||
data-item-id="<?= $item_id ?>"
|
||||
>
|
||||
<?= t('mark as read') ?>
|
||||
</a> |
|
||||
<a
|
||||
href="<?= $item['url'] ?>"
|
||||
id="original-<?= $item_id ?>"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
data-item-id="<?= $item_id ?>"
|
||||
data-action="mark-read"
|
||||
data-action="original-link"
|
||||
data-hide="true"
|
||||
>
|
||||
<?= t('original link') ?>
|
||||
|
Loading…
Reference in New Issue
Block a user