1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 15:41:29 +00:00

implement a special dialog to show feeds without recent updates (closes #264)

This commit is contained in:
Andrew Dolgov
2011-03-28 15:53:48 +04:00
parent a40de1af2c
commit 8ffd20110e
4 changed files with 317 additions and 167 deletions

View File

@@ -1191,6 +1191,61 @@ function showFeedsWithErrors() {
displayDlg('feedUpdateErrors');
}
function showInactiveFeeds() {
try {
var query = "backend.php?op=dlg&id=inactiveFeeds";
if (dijit.byId("inactiveFeedsDlg"))
dijit.byId("inactiveFeedsDlg").destroyRecursive();
dialog = new dijit.Dialog({
id: "inactiveFeedsDlg",
title: __("Feeds without recent updates"),
style: "width: 600px",
getSelectedFeeds: function() {
return getSelectedTableRowIds("prefInactiveFeedList");
},
removeSelected: function() {
var sel_rows = this.getSelectedFeeds();
console.log(sel_rows);
if (sel_rows.length > 0) {
var ok = confirm(__("Remove selected feeds?"));
if (ok) {
notify_progress("Removing selected feeds...", true);
var query = "?op=pref-feeds&subop=remove&ids="+
param_escape(sel_rows.toString());
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
notify('');
dialog.hide();
updateFeedList();
} });
}
} else {
alert(__("No feeds are selected."));
}
},
execute: function() {
if (this.validate()) {
}
},
href: query});
dialog.show();
} catch (e) {
exception_error("showInactiveFeeds", e);
}
}
function opmlRegenKey() {
try {