view: abort when requested RROW is not present
This commit is contained in:
parent
35be65a1da
commit
be5a5cd26d
|
@ -347,6 +347,10 @@ function article_callback2(transport, id) {
|
||||||
|
|
||||||
function view(id) {
|
function view(id) {
|
||||||
try {
|
try {
|
||||||
|
var crow = $("RROW-" + id);
|
||||||
|
|
||||||
|
if (!crow) return;
|
||||||
|
|
||||||
console.log("loading article: " + id);
|
console.log("loading article: " + id);
|
||||||
|
|
||||||
var cached_article = cache_get("article:" + id);
|
var cached_article = cache_get("article:" + id);
|
||||||
|
@ -375,7 +379,6 @@ function view(id) {
|
||||||
|
|
||||||
query = query + "&cids=" + cids_to_request.toString();
|
query = query + "&cids=" + cids_to_request.toString();
|
||||||
|
|
||||||
var crow = $("RROW-" + id);
|
|
||||||
var article_is_unread = crow.hasClassName("Unread");
|
var article_is_unread = crow.hasClassName("Unread");
|
||||||
|
|
||||||
active_post_id = id;
|
active_post_id = id;
|
||||||
|
|
Loading…
Reference in New Issue