Automatic selection of the first element for mark as read

This commit is contained in:
doubleface 2013-06-14 10:53:04 -04:00
parent 4abf966878
commit 467f191a51
1 changed files with 4 additions and 0 deletions

View File

@ -230,6 +230,10 @@
function change_item_status()
{
if (! document.getElementById("current-item")) {
document.querySelector("article").id = "current-item";
}
var item = document.getElementById("current-item");
if (item) switch_status(item.getAttribute("data-item-id"));
}