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") . "\"/>";
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;
debug("refetch_callback: done");
- if (!daemon_enabled) {
+ if (!daemon_enabled && !daemon_refresh_only) {
notify("All feeds updated.");
updateTitle("");
} else {
function scheduleFeedUpdate(force) {
- if (!daemon_enabled) {
+ if (!daemon_enabled && !daemon_refresh_only) {
notify("Updating feeds, please wait.", true);
updateTitle("Updating");
}
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
<!-- <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"> Update</option>
<? } ?>
<option value="qmcCatchupAll"> Mark as read</option>