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

infobox_callback: add exception handler

This commit is contained in:
Andrew Dolgov
2007-06-14 07:34:35 +01:00
parent fee51fc66b
commit aa8716da38

View File

@@ -1396,24 +1396,29 @@ function infobox_submit_callback() {
function infobox_callback() { function infobox_callback() {
if (xmlhttp.readyState == 4) { if (xmlhttp.readyState == 4) {
if (!is_msie() && !getInitParam("infobox_disable_overlay")) { try {
var overlay = document.getElementById("dialog_overlay");
if (overlay) {
overlay.style.display = "block";
}
}
var box = document.getElementById('infoBox'); if (!is_msie() && !getInitParam("infobox_disable_overlay")) {
var shadow = document.getElementById('infoBoxShadow'); var overlay = document.getElementById("dialog_overlay");
if (box) { if (overlay) {
box.innerHTML=xmlhttp.responseText; overlay.style.display = "block";
if (shadow) { }
shadow.style.display = "block";
} else {
box.style.display = "block";
} }
var box = document.getElementById('infoBox');
var shadow = document.getElementById('infoBoxShadow');
if (box) {
box.innerHTML=xmlhttp.responseText;
if (shadow) {
shadow.style.display = "block";
} else {
box.style.display = "block";
}
}
notify("");
} catch (e) {
exception_error("infobox_callback", e);
} }
notify("");
} }
} }