|
|
|
@ -62,8 +62,7 @@ function dialog_refresh_callback() {
|
|
|
|
|
|
|
|
|
|
function refetch_callback() {
|
|
|
|
|
if (xmlhttp.readyState == 4) {
|
|
|
|
|
|
|
|
|
|
// document.title = "Tiny Tiny RSS";
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
if (!xmlhttp.responseXML) {
|
|
|
|
|
notify("refetch_callback: backend did not return valid XML");
|
|
|
|
@ -118,7 +117,9 @@ function refetch_callback() {
|
|
|
|
|
|
|
|
|
|
updateTitle("");
|
|
|
|
|
notify("All feeds updated.");
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
exception_error("refetch_callback", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -126,6 +127,8 @@ function backend_sanity_check_callback() {
|
|
|
|
|
|
|
|
|
|
if (xmlhttp.readyState == 4) {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
if (!xmlhttp.responseXML) {
|
|
|
|
|
fatalError(3);
|
|
|
|
|
return;
|
|
|
|
@ -145,24 +148,12 @@ function backend_sanity_check_callback() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
init_second_stage();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* wtf this is obsolete
|
|
|
|
|
function updateFeed(feed_id) {
|
|
|
|
|
|
|
|
|
|
var query_str = "backend.php?op=rpc&subop=updateFeed&feed=" + feed_id;
|
|
|
|
|
|
|
|
|
|
if (xmlhttp_ready(xmlhttp)) {
|
|
|
|
|
xmlhttp.open("GET", query_str, true);
|
|
|
|
|
xmlhttp.onreadystatechange=feed_update_callback;
|
|
|
|
|
xmlhttp.send(null);
|
|
|
|
|
} else {
|
|
|
|
|
printLockingError();
|
|
|
|
|
} catch (e) {
|
|
|
|
|
exception_error("backend_sanity_check_callback", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
function scheduleFeedUpdate(force) {
|
|
|
|
|
|
|
|
|
@ -343,28 +334,13 @@ function genericSanityCheck() {
|
|
|
|
|
fatalError(2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* if (!xmlhttp) {
|
|
|
|
|
document.getElementById("headlines").innerHTML =
|
|
|
|
|
"<b>Fatal error:</b> This program requires XmlHttpRequest " +
|
|
|
|
|
"to function properly. Your browser doesn't seem to support it.";
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setCookie("ttrss_vf_test", "TEST");
|
|
|
|
|
if (getCookie("ttrss_vf_test") != "TEST") {
|
|
|
|
|
|
|
|
|
|
document.getElementById("headlines").innerHTML =
|
|
|
|
|
"<b>Fatal error:</b> This program requires cookies " +
|
|
|
|
|
"to function properly. Your browser doesn't seem to support them.";
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
} */
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
disableContainerChildren("headlinesToolbar", true);
|
|
|
|
|
|
|
|
|
|
if (!genericSanityCheck())
|
|
|
|
@ -374,10 +350,15 @@ function init() {
|
|
|
|
|
xmlhttp.onreadystatechange=backend_sanity_check_callback;
|
|
|
|
|
xmlhttp.send(null);
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
exception_error("init", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function init_second_stage() {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
setCookie("ttrss_vf_actfeed", "");
|
|
|
|
|
|
|
|
|
|
updateFeedList(false, false);
|
|
|
|
@ -407,7 +388,9 @@ function init_second_stage() {
|
|
|
|
|
if (splash) {
|
|
|
|
|
splash.style.display = "none";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
exception_error("init_second_stage", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function quickMenuGo() {
|
|
|
|
|