fix bug in catchupPage button handling
This commit is contained in:
parent
7ff88e75bd
commit
40789bbf5d
|
@ -248,8 +248,10 @@ function catchupPage(feed) {
|
||||||
|
|
||||||
var button = document.getElementById("btnCatchupPage");
|
var button = document.getElementById("btnCatchupPage");
|
||||||
|
|
||||||
|
if (button) {
|
||||||
button.className = "disabledButton";
|
button.className = "disabledButton";
|
||||||
button.href = "";
|
button.href = "";
|
||||||
|
}
|
||||||
|
|
||||||
xmlhttp.open("GET", query_str, true);
|
xmlhttp.open("GET", query_str, true);
|
||||||
xmlhttp.onreadystatechange=notify_callback;
|
xmlhttp.onreadystatechange=notify_callback;
|
||||||
|
@ -397,9 +399,11 @@ 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");
|
||||||
|
if (button) {
|
||||||
button.className = "disabledButton";
|
button.className = "disabledButton";
|
||||||
button.href = "";
|
button.href = "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
active_post_id = id;
|
active_post_id = id;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue