misc code cleanup

This commit is contained in:
Andrew Dolgov 2008-05-20 10:58:03 +01:00
parent d633586e06
commit 569720c589
4 changed files with 5 additions and 14 deletions

View File

@ -1159,12 +1159,7 @@ function leading_zero(p) {
function closeInfoBox(cleanup) { function closeInfoBox(cleanup) {
if (!is_msie() && !getInitParam("infobox_disable_overlay")) { Element.hide("dialog_overlay");
var overlay = document.getElementById("dialog_overlay");
if (overlay) {
overlay.style.display = "none";
}
}
var box = document.getElementById('infoBox'); var box = document.getElementById('infoBox');
var shadow = document.getElementById('infoBoxShadow'); var shadow = document.getElementById('infoBoxShadow');
@ -1220,11 +1215,8 @@ function infobox_callback2(transport) {
debug("infobox_callback2"); debug("infobox_callback2");
if (!is_msie() && !getInitParam("infobox_disable_overlay")) { if (!getInitParam("infobox_disable_overlay")) {
var overlay = document.getElementById("dialog_overlay"); Element.show("dialog_overlay");
if (overlay) {
overlay.style.display = "block";
}
} }
var box = document.getElementById('infoBox'); var box = document.getElementById('infoBox');

View File

@ -168,7 +168,7 @@ window.onload = init;
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
<div id="infoBoxShadow"><div id="infoBox">BAH</div></div> <div id="infoBoxShadow"><div id="infoBox">BAH</div></div>
<div id="dialog_overlay"> </div> <div id="dialog_overlay" style="display : none"> </div>
<div id="prefFooter"> <div id="prefFooter">
<?php if (defined('_DEBUG_USER_SWITCH')) { ?> <?php if (defined('_DEBUG_USER_SWITCH')) { ?>

View File

@ -1229,7 +1229,6 @@ a.cdmToggleLink:hover {
width : 100%; width : 100%;
z-index : 2; z-index : 2;
position : absolute; position : absolute;
display : none;
background-image : url("images/shadow_white.png"); background-image : url("images/shadow_white.png");
} }

View File

@ -100,7 +100,7 @@
<div id="fatal_error_msg">Unknown Error</div> <div id="fatal_error_msg">Unknown Error</div>
</div></div> </div></div>
<div id="dialog_overlay"> </div> <div id="dialog_overlay" style="display : none"> </div>
<script type="text/javascript"> <script type="text/javascript">
if (document.addEventListener) { if (document.addEventListener) {