Make Error turn grey when you read the thread

This commit is contained in:
Niles Rogoff 2017-07-07 20:54:18 -07:00
parent 31b960a481
commit 7426801395
No known key found for this signature in database
GPG Key ID: B78B908F23430F80
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ var xhr_and_key = (function xhr_and_key(board, a, id, key, oldreplies, closed, e
}
} catch (e) {
elem.innerHTML = red("Error");
(function(elem) {
elem.addEventListener("click", function() {
elem.innerHTML = grey("Error");
});
})(elem);
console.log(e);
}
}