1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 12:01:29 +00:00

infobox shadow

This commit is contained in:
Andrew Dolgov
2005-11-20 11:02:36 +01:00
parent bdf7f1bc71
commit 2317ffaae7
4 changed files with 45 additions and 26 deletions

View File

@@ -120,11 +120,17 @@ function userlist_callback() {
}
function infobox_callback() {
var container = document.getElementById('infoBox');
if (xmlhttp.readyState == 4) {
if (container) {
container.innerHTML=xmlhttp.responseText;
container.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";
}
}
}
}
@@ -1121,6 +1127,12 @@ function dispOptionHelp(event, sender) {
} */
function closeInfoBox() {
var d = document.getElementById('infoBox');
d.style.display = "none";
var box = document.getElementById('infoBox');
var shadow = document.getElementById('infoBoxShadow');
if (shadow) {
shadow.style.display = "none";
} else if (box) {
box.style.display = "none";
}
}