]> git.wh0rd.org Git - tt-rss.git/commitdiff
offline mode UI tweaks
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 12:49:34 +0000 (15:49 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 12:49:34 +0000 (15:49 +0300)
offline.js
tt-rss.php

index 2ce8920ab664d38377fcabf0fdd9abcb96163439..947a528b0198dc5ef2df59504241de9deb418769 100644 (file)
@@ -445,12 +445,16 @@ function init_offline() {
 
                Element.hide("dispSwitchPrompt");
                Element.hide("feedBrowserPrompt");
-               Element.hide("quickMenuChooser");
 
                var tb_form = document.getElementById("main_toolbar_form");
-
                Element.hide(tb_form.update);
 
+               var top_links = document.getElementById("topLinks");
+               top_links.innerHTML = __("Offline mode");
+
+               var chooser = document.getElementById("quickMenuChooser");
+               chooser.disabled = true;
+
                var rs = db.execute("SELECT key, value FROM init_params");
 
                while (rs.isValidRow()) {
index 5b48e348dd5be88ee0c08ecc14050abe55d8a222..38a2c32f9ff1473f8e2d29922d03bb03025aa3f7 100644 (file)
@@ -113,7 +113,7 @@ window.onload = init;
 </div>
 
 <div id="header">
-       <div class="topLinks">
+       <div class="topLinks" id="topLinks">
 
        <?php if (!SINGLE_USER_MODE) { ?>
                        <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |