1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 12:21:27 +00:00

exception handling in some code blocks

This commit is contained in:
Andrew Dolgov
2005-11-26 11:06:56 +01:00
parent d6bf9d4192
commit 7719618b29
5 changed files with 283 additions and 315 deletions

View File

@@ -28,8 +28,8 @@ if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
}
function feedlist_callback() {
var container = document.getElementById('prefContent');
if (xmlhttp.readyState == 4) {
var container = document.getElementById('prefContent');
container.innerHTML=xmlhttp.responseText;
if (active_feed) {
var row = document.getElementById("FEEDR-" + active_feed);
@@ -1146,45 +1146,25 @@ function selectTab(id) {
function init() {
// IE kludge
if (!xmlhttp) {
document.getElementById("prefContent").innerHTML =
"<b>Fatal error:</b> This program needs XmlHttpRequest " +
"to function properly. Your browser doesn't seem to support it.";
return;
try {
// IE kludge
if (!xmlhttp) {
document.getElementById("prefContent").innerHTML =
"<b>Fatal error:</b> This program needs XmlHttpRequest " +
"to function properly. Your browser doesn't seem to support it.";
return;
}
selectTab("genConfig");
document.onkeydown = hotkey_handler;
notify("");
} catch (e) {
exception_error("init", e);
}
selectTab("genConfig");
document.onkeydown = hotkey_handler;
notify("");
}
/*
var help_topic_id = false;
function do_dispOptionHelp() {
if (!xmlhttp_ready(xmlhttp))
return;
xmlhttp.open("GET", "backend.php?op=pref-prefs&subop=getHelp&pn=" +
param_escape(help_topic_id), true);
xmlhttp.onreadystatechange=gethelp_callback;
xmlhttp.send(null);
}
function dispOptionHelp(event, sender) {
help_topic_id = sender.id;
// document.setTimeout("do_dispOptionHelp()", 100);
} */
function closeInfoBox() {
var box = document.getElementById('infoBox');
var shadow = document.getElementById('infoBoxShadow');