]> git.wh0rd.org Git - tt-rss.git/commitdiff
hide updating... notify if DAEMON_REFRESH_ONLY
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 8 Jun 2006 12:03:09 +0000 (13:03 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 8 Jun 2006 12:03:09 +0000 (13:03 +0100)
functions.php
tt-rss.js
tt-rss.php

index 6de5c9edac31064343dab28c88651f5be40f98fc..ab548c2f6a2c6adc2683963069f225e7ec485efd 100644 (file)
 
                print "<param key=\"daemon_enabled\" value=\"" . ENABLE_UPDATE_DAEMON . "\"/>";
                print "<param key=\"feeds_frame_refresh\" value=\"" . FEEDS_FRAME_REFRESH . "\"/>";
+               print "<param key=\"daemon_refresh_only\" value=\"" . DAEMON_REFRESH_ONLY . "\"/>";
 
                print "<param key=\"on_catchup_show_next_feed\" value=\"" . 
                        get_pref($link, "ON_CATCHUP_SHOW_NEXT_FEED") . "\"/>";
index 7167d058410a217c68593802bbb743466b194ccb..fb4248ba918216c134aa05ca07638a5c8f7b4fbb 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -6,6 +6,7 @@ var global_unread = -1;
 var active_title_text = "";
 var current_subtitle = "";
 var daemon_enabled = false;
+var daemon_refresh_only = false;
 var _qfd_deleted_feed = 0;
 var firsttime_update = true;
 var last_refetch = 0;
@@ -81,7 +82,7 @@ function refetch_callback() {
 
                        debug("refetch_callback: done");
 
-                       if (!daemon_enabled) {
+                       if (!daemon_enabled && !daemon_refresh_only) {
                                notify("All feeds updated.");
                                updateTitle("");
                        } else {
@@ -145,7 +146,7 @@ function backend_sanity_check_callback() {
 
 function scheduleFeedUpdate(force) {
 
-       if (!daemon_enabled) {
+       if (!daemon_enabled && !daemon_refresh_only) {
                notify("Updating feeds, please wait.", true);
                updateTitle("Updating");
        }
@@ -397,7 +398,8 @@ function init_second_stage() {
                dropboxSelect(tb.view_mode, getInitParam("toolbar_view_mode"));
                dropboxSelect(tb.limit, getInitParam("toolbar_limit"));
 
-               daemon_enabled = getInitParam("daemon_enabled");
+               daemon_enabled = getInitParam("daemon_enabled") == 1;
+               daemon_refresh_only = getInitParam("daemon_refresh_only") == 1;
 
                // FIXME should be callled after window resize
 
index afc8c14ec0d4b258990fcfd7f0019078a46ff2ec..06121c2a1237d312d85ba9dd1eae939f2342fc3c 100644 (file)
@@ -213,7 +213,7 @@ window.onload = init;
                                <!-- <option>Edit this feed</option> -->
                                <option disabled>--------</option>
                                <option style="color : #5050aa" disabled>All feeds:</option>
-                               <? if (!ENABLE_UPDATE_DAEMON) { ?>
+                               <? if (!ENABLE_UPDATE_DAEMON && !DAEMON_REFRESH_ONLY) { ?>
                                <option value="qmcUpdateFeeds">&nbsp;&nbsp;Update</option>
                                <? } ?>
                                <option value="qmcCatchupAll">&nbsp;&nbsp;Mark as read</option>