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() { request.onload = function() {
find_next_item();
remove_item(item_id); remove_item(item_id);
}; };
@ -114,11 +115,6 @@
callback(response); callback(response);
} }
if (! response.result) {
//window.alert('Unable to refresh this feed: ' + feed_id);
}
} }
catch (e) {} catch (e) {}
} }
@ -211,12 +207,8 @@
if (link) { if (link) {
if (link.getAttribute("data-action") == "mark-read") { if (is_listing()) mark_as_read(link.getAttribute("data-item-id"));
link.removeAttribute("data-action");
mark_as_read(link.getAttribute("data-item-id"));
find_next_item();
}
link.click(); link.click();
} }
} }