Fix bug multiple marked_as_read when open original link with keyboard shortcuts

This commit is contained in:
Frederic Guillot 2013-06-28 21:52:34 -04:00
parent 66c3cdf2bf
commit d292974394

View File

@ -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();
}
}