rework no daemon warning
This commit is contained in:
parent
c50e2b3004
commit
ef16ae3782
|
@ -1576,3 +1576,7 @@ function filterDlgCheckAction(sender) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
function explainError(code) {
|
||||
return displayDlg("explainError", code);
|
||||
}
|
||||
|
|
|
@ -3,6 +3,29 @@
|
|||
$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>";
|
||||
|
|
|
@ -242,6 +242,11 @@ input.editbox {
|
|||
color : black;
|
||||
}
|
||||
|
||||
.notifyError span:hover {
|
||||
color : red;
|
||||
cursor : pointer;
|
||||
}
|
||||
|
||||
#dispSwitch {
|
||||
font-size : x-small;
|
||||
text-align : right;
|
||||
|
|
|
@ -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("<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) {
|
||||
|
@ -547,7 +551,7 @@ function parse_runtime_info(elem) {
|
|||
} else {
|
||||
w.style.display = "none";
|
||||
}
|
||||
}
|
||||
} */
|
||||
param = param.nextSibling;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,12 +97,6 @@ if (document.addEventListener) {
|
|||
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>
|
||||
|
|
Loading…
Reference in New Issue