s4

changeset 919:27edbd91022c

Erase all "new" flags after arrival of ajax response
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 08 Jan 2021 20:44:40 +0900
parents 95c066490083
children 7149f283294b
files s4-main.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/s4-main.js	Fri Jan 08 19:35:27 2021 +0900
     1.2 +++ b/s4-main.js	Fri Jan 08 20:44:40 2021 +0900
     1.3 @@ -141,6 +141,9 @@
     1.4  	    registInsertDirect(td0.querySelectorAll("a[href]"));
     1.5  	    registPjaxViewers(td1.querySelectorAll("a[href]"));
     1.6  	}
     1.7 +	// Erase all "new article" flags before merging
     1.8 +	for (let i of document.querySelectorAll("td.new"))
     1.9 +	    i.classList.remove("new");
    1.10  	// Now reconstruct articles with merge-sort like method
    1.11  	outer: for (; ncur<newids.length; ncur++) {
    1.12  	    n = newids[ncur];