mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
remove obsolete code related to version checking and tarball updater plugin
This commit is contained in:
30
js/tt-rss.js
30
js/tt-rss.js
@@ -756,15 +756,6 @@ function parse_runtime_info(data) {
|
||||
|
||||
// console.log("RI: " + k + " => " + v);
|
||||
|
||||
if (k == "new_version_available") {
|
||||
if (v == "1") {
|
||||
Element.show(dijit.byId("newVersionIcon").domNode);
|
||||
} else {
|
||||
Element.hide(dijit.byId("newVersionIcon").domNode);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (k == "dep_ts" && parseInt(getInitParam("dep_ts")) > 0) {
|
||||
if (parseInt(getInitParam("dep_ts")) < parseInt(v) && getInitParam("reload_on_ts_change")) {
|
||||
window.location.reload();
|
||||
@@ -968,27 +959,6 @@ function reverseHeadlineOrder() {
|
||||
}
|
||||
}
|
||||
|
||||
function newVersionDlg() {
|
||||
try {
|
||||
var query = "backend.php?op=dlg&method=newVersion";
|
||||
|
||||
if (dijit.byId("newVersionDlg"))
|
||||
dijit.byId("newVersionDlg").destroyRecursive();
|
||||
|
||||
dialog = new dijit.Dialog({
|
||||
id: "newVersionDlg",
|
||||
title: __("New version available!"),
|
||||
style: "width: 600px",
|
||||
href: query,
|
||||
});
|
||||
|
||||
dialog.show();
|
||||
|
||||
} catch (e) {
|
||||
exception_error("newVersionDlg", e);
|
||||
}
|
||||
}
|
||||
|
||||
function handle_rpc_json(transport, scheduled_call) {
|
||||
try {
|
||||
var reply = JSON.parse(transport.responseText);
|
||||
|
||||
Reference in New Issue
Block a user