From: Andrew Dolgov Date: Sat, 27 Jan 2007 09:21:55 +0000 (+0100) Subject: rework no daemon warning X-Git-Tag: 1.2.8~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ef16ae378238fa868d282da5c4f77d8556534af4;p=tt-rss.git rework no daemon warning --- diff --git a/functions.js b/functions.js index 26f3f4bf..17370dfd 100644 --- a/functions.js +++ b/functions.js @@ -1576,3 +1576,7 @@ function filterDlgCheckAction(sender) { } } + +function explainError(code) { + return displayDlg("explainError", code); +} diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 8a3478c8..414e0100 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -3,6 +3,29 @@ $id = $_GET["id"]; $param = db_escape_string($_GET["param"]); + if ($id == "explainError") { + + print "
Error message
"; + print "
"; + + if ($param == 1) { + print _("Update daemon is enabled in configuration, but daemon + process is not running, which prevents all feeds from updating. Please + start the daemon process or contact instance owner."); + } + + print "
"; + + print "
"; + + print ""; + + print "
"; + + } + if ($id == "quickAddFeed") { print "
Subscribe to feed
"; diff --git a/tt-rss.css b/tt-rss.css index ac44a1b4..5cf0ce7f 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -242,6 +242,11 @@ input.editbox { color : black; } +.notifyError span:hover { + color : red; + cursor : pointer; +} + #dispSwitch { font-size : x-small; text-align : right; diff --git a/tt-rss.js b/tt-rss.js index 0e4c1548..0e0886b8 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -539,7 +539,11 @@ function parse_runtime_info(elem) { debug("RI: " + k + " => " + v); - var w = document.getElementById("noDaemonWarning"); + if (k == "daemon_is_running" && v != 1) { + notify("Warning: Update daemon is not runing.", true, true); + } + +/* var w = document.getElementById("noDaemonWarning"); if (w) { if (k == "daemon_is_running" && v != 1) { @@ -547,7 +551,7 @@ function parse_runtime_info(elem) { } else { w.style.display = "none"; } - } + } */ param = param.nextSibling; } } diff --git a/tt-rss.php b/tt-rss.php index d6846986..57a750c5 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -97,12 +97,6 @@ if (document.addEventListener) { window.onload = init; -
- Warning: Update daemon is enabled in configuration, but daemon - process is not running, which prevents all feeds from updating. Please - start the daemon process or contact instance owner.") ?> -
-