mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-13 20:11:07 +02:00
remove explainError server-side dlg
This commit is contained in:
parent
4182018cb7
commit
eac7ad5d34
@ -35,37 +35,6 @@ class Dlg extends Handler_Protected {
|
|||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function explainError() {
|
|
||||||
print "<div class=\"errorExplained\">";
|
|
||||||
|
|
||||||
if ($this->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.");
|
|
||||||
|
|
||||||
$stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp");
|
|
||||||
|
|
||||||
print "<p>" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->param == 3) {
|
|
||||||
print __("Update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner.");
|
|
||||||
|
|
||||||
$stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp");
|
|
||||||
|
|
||||||
print "<p>" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</div>";
|
|
||||||
|
|
||||||
print "<footer class='text-center'>";
|
|
||||||
print "<button onclick=\"return CommonDialogs.closeInfoBox()\">".
|
|
||||||
__('Close this window')."</button>";
|
|
||||||
print "</footer>";
|
|
||||||
|
|
||||||
//return;
|
|
||||||
}
|
|
||||||
|
|
||||||
function printTagCloud() {
|
function printTagCloud() {
|
||||||
print "<div class='panel text-center'>";
|
print "<div class='panel text-center'>";
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ const App = {
|
|||||||
console.log("RI:", k, "=>", v);
|
console.log("RI:", k, "=>", v);
|
||||||
|
|
||||||
if (k == "daemon_is_running" && v != 1) {
|
if (k == "daemon_is_running" && v != 1) {
|
||||||
Notify.error("<span onclick=\"App.explainError(1)\">Update daemon is not running.</span>", true);
|
Notify.error("Update daemon is not running.", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -446,7 +446,7 @@ const App = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (k == "daemon_stamp_ok" && v != 1) {
|
if (k == "daemon_stamp_ok" && v != 1) {
|
||||||
Notify.error("<span onclick=\"App.explainError(3)\">Update daemon is not updating feeds.</span>", true);
|
Notify.error("Update daemon is not updating feeds.", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -530,9 +530,6 @@ const App = {
|
|||||||
|
|
||||||
this.initSecondStage();
|
this.initSecondStage();
|
||||||
},
|
},
|
||||||
explainError: function(code) {
|
|
||||||
return this.displayDlg(__("Error explained"), "explainError", code);
|
|
||||||
},
|
|
||||||
Error: {
|
Error: {
|
||||||
fatal: function (error, params) {
|
fatal: function (error, params) {
|
||||||
params = params || {};
|
params = params || {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user