Fix bug #28: History original link disappear

This commit is contained in:
Frederic Guillot 2013-04-30 21:52:43 -04:00
parent 855d78bb48
commit 40f20a9bf5
3 changed files with 8 additions and 5 deletions

View File

@ -11,7 +11,7 @@
request.onreadystatechange = function() {
if (request.readyState === 4) {
if (request.readyState === 4 && is_listing()) {
var response = JSON.parse(request.responseText);
@ -180,8 +180,12 @@
if (link) {
mark_as_read(link.getAttribute("data-item-id"));
find_next_item();
if (link.getAttribute("data-action") == "mark-read") {
mark_as_read(link.getAttribute("data-item-id"));
find_next_item();
}
link.click();
}
}

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width">
<link rel="icon" type="image/png" href="./assets/img/favicon.png">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="./assets/img/touch-icon-iphone.png">

View File

@ -33,7 +33,6 @@
rel="noreferrer"
target="_blank"
data-item-id="<?= urlencode($item['id']) ?>"
data-action="mark-read"
>
<?= t('original link') ?>
</a>