fix bug in catchupPage button handling
This commit is contained in:
parent
7ff88e75bd
commit
40789bbf5d
12
tt-rss.js
12
tt-rss.js
|
@ -248,8 +248,10 @@ function catchupPage(feed) {
|
||||||
|
|
||||||
var button = document.getElementById("btnCatchupPage");
|
var button = document.getElementById("btnCatchupPage");
|
||||||
|
|
||||||
button.className = "disabledButton";
|
if (button) {
|
||||||
button.href = "";
|
button.className = "disabledButton";
|
||||||
|
button.href = "";
|
||||||
|
}
|
||||||
|
|
||||||
xmlhttp.open("GET", query_str, true);
|
xmlhttp.open("GET", query_str, true);
|
||||||
xmlhttp.onreadystatechange=notify_callback;
|
xmlhttp.onreadystatechange=notify_callback;
|
||||||
|
@ -397,8 +399,10 @@ function view(id,feed_id) {
|
||||||
|
|
||||||
if (unread_rows.length == 0) {
|
if (unread_rows.length == 0) {
|
||||||
var button = document.getElementById("btnCatchupPage");
|
var button = document.getElementById("btnCatchupPage");
|
||||||
button.className = "disabledButton";
|
if (button) {
|
||||||
button.href = "";
|
button.className = "disabledButton";
|
||||||
|
button.href = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
active_post_id = id;
|
active_post_id = id;
|
||||||
|
|
Loading…
Reference in New Issue