Merge branch 'markread' of https://github.com/doubleface/miniflux
This commit is contained in:
commit
b5a5afba37
@ -400,6 +400,11 @@
|
|||||||
refresh_feed(feed_id);
|
refresh_feed(feed_id);
|
||||||
break;
|
break;
|
||||||
case 'mark-read':
|
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");
|
var item_id = e.target.getAttribute("data-item-id");
|
||||||
mark_as_read(item_id);
|
mark_as_read(item_id);
|
||||||
break;
|
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> |
|
<a id="bookmark-<?= $item_id ?>" href="?action=bookmark&value=1&id=<?= $item_id ?>&redirect=unread&offset=<?= $offset ?>"><?= t('bookmark') ?></a> |
|
||||||
<?php endif ?>
|
<?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
|
<a
|
||||||
href="<?= $item['url'] ?>"
|
href="<?= $item['url'] ?>"
|
||||||
id="original-<?= $item_id ?>"
|
id="original-<?= $item_id ?>"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
data-item-id="<?= $item_id ?>"
|
data-item-id="<?= $item_id ?>"
|
||||||
data-action="mark-read"
|
data-action="original-link"
|
||||||
data-hide="true"
|
data-hide="true"
|
||||||
>
|
>
|
||||||
<?= t('original link') ?>
|
<?= t('original link') ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user