]> git.wh0rd.org Git - tt-rss.git/commitdiff
css-based layout + required fixes (2)
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 28 Sep 2006 12:23:28 +0000 (13:23 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 28 Sep 2006 12:23:28 +0000 (13:23 +0100)
backend.php
feedlist.js
functions.js
tt-rss.css
tt-rss.js
tt-rss.php
viewfeed.js

index cfe322b72732e4bd42080f4ddfd0c68404f9602a..75891208db673a2e4881040531381b91e4be42e7 100644 (file)
                                $class = "headlinesSubToolbar";
                                $tid = "headlineActionsTop";
                        } else {
-                               $class = "invisible";
+                               $class = "headlinesSubToolbar";
                                $tid = "headlineActionsBottom";
                        }
 
index df1e17fb6790456e75cce67c510b23a72175edb0..1a83a454cb510949e2649d31d59ec35713990a1c 100644 (file)
@@ -1,4 +1,4 @@
-var xmlhttp = Ajax.getTransport();
+//var xmlhttp = Ajax.getTransport();
 
 function viewCategory(cat) {
        getMainContext().active_feed_is_cat = true;
@@ -7,8 +7,10 @@ function viewCategory(cat) {
 
 function feedlist_callback() {
        if (xmlhttp.readyState == 4) {
+               debug("feedlist_callback");
                var f = document.getElementById("feeds-frame");
                f.innerHTML = xmlhttp.responseText;
+               feedlist_init();
        }
 }
 
@@ -144,19 +146,19 @@ function feedlist_init() {
                if (arguments.callee.done) return;
                arguments.callee.done = true;           
                
-               parent.debug("in feedlist init");
+               debug("in feedlist init");
                
                hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1);
                document.onkeydown = hotkey_handler;
-               parent.setTimeout("timeout()", 0);
+               setTimeout("timeout()", 0);
 
-               parent.debug("about to remove splash, OMG!");
+               debug("about to remove splash, OMG!");
 
-               var o = parent.document.getElementById("overlay");
+               var o = document.getElementById("overlay");
 
                if (o) {
                        o.style.display = "none";
-                       parent.debug("removed splash!");
+                       debug("removed splash!");
                }
 
        } catch (e) {
index ccf2bab16151f36b6036e0aae58616e0d7a3a3f6..876e03ba6f36370a2cc6f5c3f43ac4e2075b9a13 100644 (file)
@@ -1264,7 +1264,7 @@ function qafAdd() {
 
        var feeds_doc = getFeedsContext().document;
 
-       feeds_doc.location.href = "backend.php?op=error&msg=Loading,%20please wait...";
+//     feeds_doc.location.href = "backend.php?op=error&msg=Loading,%20please wait...";
        
        var query = Form.serialize("feed_add_form");
        
index 29f855a0dfc7b4c7483dba4b0146c0b8a4fd292d..6d4aaf49f2aa82daade9f8df8f1857376e14172a 100644 (file)
@@ -1263,7 +1263,7 @@ table.loginForm2 .innerLoginCell {
        font-size : small;
 }
 
-#headlines-frame {
+div.headlines_normal {
        position : absolute;
        border-width : 1px 0px 0px 0px;
        border-style : solid;
@@ -1276,6 +1276,19 @@ table.loginForm2 .innerLoginCell {
        font-size : small;
 }
 
+div.headlines_cdm {
+       position : absolute;
+       border-width : 1px 0px 1px 0px;
+       border-style : solid;
+       border-color : #88b0f0;
+       left : 260px;
+       bottom : 50px;
+       top : 85px;
+       right : 0px;
+       overflow : auto;
+       font-size : small;
+}
+
 #content-frame {
        position : absolute;
        border-width : 1px 0px 1px 0px;
index bcbadcb5246cf73d33dab433cdeedd4f8d48c92e..925721367c494cd06772a70f0f9a3d6517ee9054 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -225,7 +225,7 @@ function updateFeedList(silent, fetch) {
 //     var feeds_frame = document.getElementById("feeds-frame");
 //     feeds_frame.src = query_str;
 
-       debug("updateFeedList");
+       debug("updateFeedList: " + query_str);
 
        if (xmlhttp_ready(xmlhttp)) {
                xmlhttp.open("GET", query_str, true);
index a3a7f465c7389567a16b0046e6136cef9c747be4..b985867bb7976ffa3c6d57c4802594e92b683d83 100644 (file)
@@ -75,7 +75,7 @@
 
 <body>
 
-<!-- <div id="overlay"><div id="overlay_inner">Loading, please wait...</div></div> -->
+<div id="overlay"><div id="overlay_inner">Loading, please wait...</div></div> 
 
 <div id="fatal_error"><div id="fatal_error_inner">
        <h1>Fatal Error</h1>
@@ -99,15 +99,22 @@ window.onload = init;
 
 <div id="infoBoxShadow"><div id="infoBox">&nbsp;</div></div>
 
-<div id="header">
-       <?php if (!SINGLE_USER_MODE) { ?>
-               <div style="float : right">
-                       Hello, <b><?php echo $_SESSION["name"] ?></b>
-                       (<a href="logout.php">Logout</a>)
-               </div>
-       <?php } ?>
-       <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS">    
-</div>
+<?php if (get_pref($link, 'DISPLAY_HEADER')) { ?>
+       <div id="header">
+               <?php if (!SINGLE_USER_MODE) { ?>
+                       <div style="float : right">
+                               Hello, <b><?php echo $_SESSION["name"] ?></b>
+                               (<a href="logout.php">Logout</a>)
+                       </div>
+               <?php } ?>
+               <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS">    
+       </div>
+<?php } else if (!SINGLE_USER_MODE) { ?>
+       <div style="float : right">
+               Hello, <b><?php echo $_SESSION["name"] ?></b>
+               (<a href="logout.php">Logout</a>)
+       </div>
+<?php } ?>
 
 <div id="feeds-holder">
        <div id="dispSwitch"> 
@@ -193,13 +200,18 @@ window.onload = init;
 
        </div>
 
-<div id="headlines-frame"> -fixme- </div>
-
-<div id="content-frame"> -fixme- </div>
+<?php if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
+       <div id="headlines-frame" class="headlines_normal">&nbsp;</div>
+       <div id="content-frame">&nbsp;</div>
+<?php } else { ?>
+       <div id="headlines-frame" class="headlines_cdm">&nbsp;</div>
+<?php } ?>
 
-<div id="footer">
-       <a href="http://tt-rss.spb.ru/">Tiny Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
-</div>
+<?php if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
+       <div id="footer">
+               <a href="http://tt-rss.spb.ru/">Tiny Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
+       </div>
+<?php } ?>
 
 <?php db_close($link); ?>
 
index ee8d0216ee835596ae6d7c5964bf3dfc05ca127f..838f3b0e594b575a2ffff9478ec8847982511aaf 100644 (file)
@@ -1,6 +1,6 @@
 var active_post_id = false;
 
-var xmlhttp_rpc = Ajax.getTransport();
+//var xmlhttp_rpc = Ajax.getTransport();
 
 function headlines_callback() {
        if (xmlhttp.readyState == 4) {