more notify() integration

master
Andrew Dolgov 20 years ago
parent 476cac422f
commit 1c37c607df

@ -152,7 +152,7 @@
print "<table class=\"headlines\" width=\"100%\">"; print "<table class=\"headlines\" width=\"100%\">";
print "<tr><td class=\"search\" colspan=\"2\"> print "<tr><td class=\"search\" colspan=\"3\">
Search: <input onchange=\"javascript:search($feed,this);\"></td></tr>"; Search: <input onchange=\"javascript:search($feed,this);\"></td></tr>";
print "<tr><td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>"; print "<tr><td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>";

@ -68,6 +68,9 @@ function viewfeed_callback() {
} }
} }
notify("");
} }
} }
@ -109,14 +112,16 @@ function catchupAllFeeds() {
function viewfeed(feed, skip, subop) { function viewfeed(feed, skip, subop) {
document.getElementById('headlines').innerHTML='Loading headlines, please wait...'; // document.getElementById('headlines').innerHTML='Loading headlines, please wait...';
document.getElementById('content').innerHTML='&nbsp;'; // document.getElementById('content').innerHTML='&nbsp;';
xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) + xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
"&skip=" + param_escape(skip) + "&subop=" + param_escape(subop) , true); "&skip=" + param_escape(skip) + "&subop=" + param_escape(subop) , true);
xmlhttp.onreadystatechange=viewfeed_callback; xmlhttp.onreadystatechange=viewfeed_callback;
xmlhttp.send(null); xmlhttp.send(null);
notify("Loading headlines...");
} }
function view(id,feed_id) { function view(id,feed_id) {

Loading…
Cancel
Save