Fix bug multiple marked_as_read when open original link with keyboard shortcuts
This commit is contained in:
parent
66c3cdf2bf
commit
d292974394
@ -34,6 +34,7 @@
|
||||
|
||||
request.onload = function() {
|
||||
|
||||
find_next_item();
|
||||
remove_item(item_id);
|
||||
};
|
||||
|
||||
@ -114,11 +115,6 @@
|
||||
|
||||
callback(response);
|
||||
}
|
||||
|
||||
if (! response.result) {
|
||||
|
||||
//window.alert('Unable to refresh this feed: ' + feed_id);
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
@ -211,12 +207,8 @@
|
||||
|
||||
if (link) {
|
||||
|
||||
if (link.getAttribute("data-action") == "mark-read") {
|
||||
|
||||
mark_as_read(link.getAttribute("data-item-id"));
|
||||
find_next_item();
|
||||
}
|
||||
|
||||
if (is_listing()) mark_as_read(link.getAttribute("data-item-id"));
|
||||
link.removeAttribute("data-action");
|
||||
link.click();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user