]> git.wh0rd.org Git - tt-rss.git/commitdiff
add infobox overlay, layout fixes
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 08:08:18 +0000 (09:08 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 08:08:18 +0000 (09:08 +0100)
functions.js
modules/pref-filters.php
modules/pref-labels.php
modules/pref-users.php
prefs.php
tt-rss.css
tt-rss.php

index 21a0da7992b7a3973b19f89d09d16959f87e4f6b..f308a3d2783564f1e54c25912cf861fc3b07e682 100644 (file)
@@ -1319,6 +1319,14 @@ function leading_zero(p) {
 }
 
 function closeInfoBox(cleanup) {
+
+       if (!is_msie()) {
+               var overlay = document.getElementById("dialog_overlay");
+               if (overlay) {
+                       overlay.style.display = "none";
+               }
+       }
+
        var box = document.getElementById('infoBox');
        var shadow = document.getElementById('infoBoxShadow');
 
@@ -1375,6 +1383,12 @@ function infobox_submit_callback() {
 
 function infobox_callback() {
        if (xmlhttp.readyState == 4) {
+               var overlay = document.getElementById("dialog_overlay");
+
+               if (overlay) {
+                       overlay.style.display = "block";
+               }
+
                var box = document.getElementById('infoBox');
                var shadow = document.getElementById('infoBoxShadow');
                if (box) {                      
index db2744b28ed03ba9b02a9f58e8578b530402866a..7445c0e0d85a404eac6e647fb23e77d759d04332 100644 (file)
                        print "<tr class=\"title\">
                                                <td align='center' width=\"5%\">&nbsp;</td>
                                                <td width=\"20%\"><a href=\"javascript:updateFilterList('reg_exp')\">".__('Filter expression')."</a></td>
-                                               <td width=\"20%\"><a href=\"javascript:updateFilterList('feed_title')\">".__('Feed')."</a></td>
+                                               <td width=\"\"><a href=\"javascript:updateFilterList('feed_title')\">".__('Feed')."</a></td>
                                                <td width=\"15%\"><a href=\"javascript:updateFilterList('filter_type')\">".__('Match')."</a></td>
                                                <td width=\"15%\"><a href=\"javascript:updateFilterList('action_description')\">".__('Action')."</a></td>";
 
index 3b1f5829c3f441d7c25498534a5023508ad1490a..5260e7659661e7929a84c3d632cbb61011d7dcf3 100644 (file)
                        print "<tr class=\"title\">
                                                <td width=\"5%\">&nbsp;</td>
                                                <td width=\"30%\"><a href=\"javascript:updateLabelList('description')\">".__('Caption')."</a></td>
-                                               <td width=\"50%\"><a href=\"javascript:updateLabelList('sql_exp')\">".__('SQL Expression')."</a>
+                                               <td width=\"\"><a href=\"javascript:updateLabelList('sql_exp')\">".__('SQL Expression')."</a>
                                                </td>
                                                </tr>";
                        
index b61323ad47788d9be05d7142203677cf9274a90c..156772b77c88290978a4546963a7d4c9cab70ca7 100644 (file)
 
                print "<tr class=\"title\">
                                        <td align='center' width=\"5%\">&nbsp;</td>
-                                       <td width='40%'><a href=\"javascript:updateUsersList('login')\">".__('Login')."</a></td>
-                                       <td width='40%'><a href=\"javascript:updateUsersList('access_level')\">".__('Access Level')."</a></td>
-                                       <td width='30%'><a href=\"javascript:updateUsersList('last_login')\">".__('Last login')."</a></td></tr>";
+                                       <td width=''><a href=\"javascript:updateUsersList('login')\">".__('Login')."</a></td>
+                                       <td width='20%'><a href=\"javascript:updateUsersList('access_level')\">".__('Access Level')."</a></td>
+                                       <td width='20%'><a href=\"javascript:updateUsersList('last_login')\">".__('Last login')."</a></td></tr>";
                
                $lnum = 0;
                
index be0cd419f05116c58dfe084674d8c734915b7b1c..ca48f43fa4bc11258c17083ca99ac14e69278da6 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -131,6 +131,8 @@ 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="prefFooter">
        <?php if (defined('_DEBUG_USER_SWITCH')) { ?>
                <select id="userSwitch" onchange="userSwitch()">
index f8ada76dda098227185d31646b4d4bb66ad9a5a6..e14dcfaead5c6d4993bf7e3568bf233815fd20a1 100644 (file)
@@ -1068,6 +1068,18 @@ a.cdmToggleLink:hover {
        font-size : 8pt;
 }
 
+#dialog_overlay {
+       background : white;
+       left : 0;
+       top : 0;
+       height : 100%;
+       width : 100%;
+       z-index : 2;
+       opacity : 0.5;
+       position : absolute;
+       display : none;
+}
+
 #overlay {
        background : white;
        left : 0;
index a404208b5f52ab33e937f1aad1e699897a578033..6ab331611b7d238f59419419ab9c85c92ab34975 100644 (file)
@@ -93,6 +93,8 @@
        <div id="fatal_error_msg">Unknown Error</div>
 </div></div>
 
+<div id="dialog_overlay"> </div>
+
 <script type="text/javascript">
 if (document.addEventListener) {
        document.addEventListener("DOMContentLoaded", init, null);