var global_unread = -1;
var active_title_text = "";
var current_subtitle = "";
-
+var daemon_enabled = false;
var _qfd_deleted_feed = 0;
/*@cc_on @*/
var f_document = window.frames["feeds-frame"].document;
parse_counters(reply, f_document, window);
-
- updateTitle("");
- notify("All feeds updated.");
+
+ if (!daemon_enabled) {
+ updateTitle("");
+ notify("All feeds updated.");
+ }
} catch (e) {
exception_error("refetch_callback", e);
updateTitle("");
function scheduleFeedUpdate(force) {
- notify("Updating feeds, please wait.");
-
-// document.title = "Tiny Tiny RSS - Updating...";
-
- updateTitle("Updating");
+ if (!daemon_enabled) {
+ notify("Updating feeds, please wait.");
+ updateTitle("Updating");
+ }
var query_str = "backend.php?op=rpc&subop=";
dropboxSelect(viewbox, getCookie("ttrss_vf_vmode"));
dropboxSelect(limitbox, getCookie("ttrss_vf_limit"));
+
+ daemon_enabled = getCookie("ttrss_vf_daemon");
} catch (e) {
exception_error("init_second_stage", e);
require_once "sanity_check.php";
require_once "config.php";
+
+ if (!ENABLE_UPDATE_DAEMON) {
+ die("Please enable option ENABLE_UPDATE_DAEMON in config.php");
+ }
+
require_once "db.php";
require_once "db-prefs.php";
require_once "functions.php";