}
}
+
+function explainError(code) {
+ return displayDlg("explainError", code);
+}
$id = $_GET["id"];
$param = db_escape_string($_GET["param"]);
+ if ($id == "explainError") {
+
+ print "<div id=\"infoBoxTitle\">Error message</div>";
+ print "<div class=\"infoBoxContents\">";
+
+ 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 "</div>";
+
+ print "<div align='center'>";
+
+ print "<input class=\"button\"
+ type=\"submit\" onclick=\"return closeInfoBox()\"
+ value=\"Close\">";
+
+ print "</div>";
+
+ }
+
if ($id == "quickAddFeed") {
print "<div id=\"infoBoxTitle\">Subscribe to feed</div>";
color : black;
}
+.notifyError span:hover {
+ color : red;
+ cursor : pointer;
+}
+
#dispSwitch {
font-size : x-small;
text-align : right;
debug("RI: " + k + " => " + v);
- var w = document.getElementById("noDaemonWarning");
+ if (k == "daemon_is_running" && v != 1) {
+ notify("<span onclick=\"javascript:explainError(1)\">Warning: Update daemon is not runing.</span>", true, true);
+ }
+
+/* var w = document.getElementById("noDaemonWarning");
if (w) {
if (k == "daemon_is_running" && v != 1) {
} else {
w.style.display = "none";
}
- }
+ } */
param = param.nextSibling;
}
}
window.onload = init;
</script>
-<div id="noDaemonWarning">
- <?php echo _("<b>Warning:</b> 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.") ?>
-</div>
-
<ul id="debug_output"></ul>
<div id="infoBoxShadow"><div id="infoBox"> </div></div>