summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-07 16:33:45 +0400
committerAndrew Dolgov <[email protected]>2009-10-07 16:33:45 +0400
commitde85cac2d61c1ee9f6299cfea0b5766404289366 (patch)
tree755e12a73bb21ada62c70dc8b424b35b377b3f19 /functions.js
parent1638fc4e13e1d71eceb1deefe983c7f48d47b8a1 (diff)
infoBox display tweaks
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js27
1 files changed, 11 insertions, 16 deletions
diff --git a/functions.js b/functions.js
index 02417db79..93592b1bb 100644
--- a/functions.js
+++ b/functions.js
@@ -1290,13 +1290,9 @@ function closeInfoBox(cleanup) {
if (Element.visible("infoBoxShadow")) {
Element.hide("dialog_overlay");
-
- var shadow = $('infoBoxShadow');
- var box = $('infoBoxShadow');
-
- Element.hide(shadow);
+ Element.hide("infoBoxShadow");
- if (cleanup) box.innerHTML = "&nbsp;";
+ if (cleanup) $("infoBoxShadow").innerHTML = "&nbsp;";
enableHotkeys();
}
@@ -1342,20 +1338,19 @@ function infobox_callback2(transport) {
debug("infobox_callback2");
- if (!getInitParam("infobox_disable_overlay")) {
- Element.show("dialog_overlay");
- }
-
var box = $('infoBox');
- var shadow = $('infoBoxShadow');
+
if (box) {
- box.innerHTML=transport.responseText;
- if (shadow) {
- shadow.style.display = "block";
- } else {
- box.style.display = "block";
+ if (!getInitParam("infobox_disable_overlay")) {
+ Element.show("dialog_overlay");
}
+
+ box.innerHTML=transport.responseText;
+ Element.show("infoBoxShadow");
+ //Effect.SlideDown("infoBoxShadow", {duration : 1.0});
+
+
}
/* FIXME this needs to be moved out somewhere */