]> git.wh0rd.org Git - tt-rss.git/commitdiff
misc code cleanup
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 May 2008 09:58:03 +0000 (10:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 May 2008 09:58:03 +0000 (10:58 +0100)
functions.js
prefs.php
tt-rss.css
tt-rss.php

index 99d267f918261a26aa8a313af796bfa90c6393d9..79068c0fd8340f33317d214a2c71ae8c81e41f97 100644 (file)
@@ -1159,12 +1159,7 @@ function leading_zero(p) {
 
 function closeInfoBox(cleanup) {
 
-       if (!is_msie() && !getInitParam("infobox_disable_overlay")) {
-               var overlay = document.getElementById("dialog_overlay");
-               if (overlay) {
-                       overlay.style.display = "none";
-               }
-       }
+       Element.hide("dialog_overlay");
 
        var box = document.getElementById('infoBox');
        var shadow = document.getElementById('infoBoxShadow');
@@ -1220,11 +1215,8 @@ function infobox_callback2(transport) {
 
                debug("infobox_callback2");
 
-               if (!is_msie() && !getInitParam("infobox_disable_overlay")) {
-                       var overlay = document.getElementById("dialog_overlay");
-                       if (overlay) {
-                               overlay.style.display = "block";
-                       }
+               if (!getInitParam("infobox_disable_overlay")) {
+                       Element.show("dialog_overlay");
                }
 
                var box = document.getElementById('infoBox');
index 8a483d70c6de3d338efdaad6a162be1f907264d4..76da060485ece2c9828539920772c2af3d4d1600 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -168,7 +168,7 @@ window.onload = init;
 <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></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">
        <?php if (defined('_DEBUG_USER_SWITCH')) { ?>
index 346c4efa89a554722342b855eac938c449feb1f7..49dfc827cb094f0aad283d3b131c4d917c97012b 100644 (file)
@@ -1229,7 +1229,6 @@ a.cdmToggleLink:hover {
        width : 100%;
        z-index : 2;
        position : absolute;
-       display : none;
        background-image : url("images/shadow_white.png");
 }
 
index 3b6dcada5a151d525e31fb50e449d35f216e5108..8fa81120850f37fe528ef365731c7ae371b7a5e4 100644 (file)
        <div id="fatal_error_msg">Unknown Error</div>
 </div></div>
 
-<div id="dialog_overlay"> </div>
+<div id="dialog_overlay" style="display : none"> </div>
 
 <script type="text/javascript">
 if (document.addEventListener) {