Automatic selection of the first element for mark as read
This commit is contained in:
parent
4abf966878
commit
467f191a51
@ -230,6 +230,10 @@
|
|||||||
|
|
||||||
function change_item_status()
|
function change_item_status()
|
||||||
{
|
{
|
||||||
|
if (! document.getElementById("current-item")) {
|
||||||
|
document.querySelector("article").id = "current-item";
|
||||||
|
}
|
||||||
|
|
||||||
var item = document.getElementById("current-item");
|
var item = document.getElementById("current-item");
|
||||||
if (item) switch_status(item.getAttribute("data-item-id"));
|
if (item) switch_status(item.getAttribute("data-item-id"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user