summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-11 08:56:57 +0100
committerAndrew Dolgov <[email protected]>2005-12-11 08:56:57 +0100
commit696684653d0f69c9570f32cb910237f6b8b1bde7 (patch)
tree2864e5b282a50013289d864ca79188bb26b4b6af /tt-rss.js
parentdf268d47ec09845c4c0e65b48ff019e3286081bd (diff)
confirm dangerous actions in prefs, main quick-delete action change
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/tt-rss.js b/tt-rss.js
index c8e1c3e3f..b47e3bd54 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -438,8 +438,11 @@ function quickMenuGo() {
notify("Please select some feed first.");
return;
}
+
+ if (confirm("Remove current feed?")) {
+ qfdDelete(actid);
+ }
- displayDlg("quickDelFeed", actid);
return;
}
@@ -546,10 +549,10 @@ function qfdDelete(feed_id) {
notify("Removing feed...");
- var feeds_doc = window.frames["feeds-frame"].document;
- feeds_doc.location.href = "backend.php?op=error&msg=Loading,%20please wait...";
+// var feeds_doc = window.frames["feeds-frame"].document;
+// feeds_doc.location.href = "backend.php?op=error&msg=Loading,%20please wait...";
- xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids=" + feed_id);
+ xmlhttp.open("GET", "backend.php?op=pref-feeds&quiet=1&subop=remove&ids=" + feed_id);
xmlhttp.onreadystatechange=dlg_frefresh_callback;
xmlhttp.send(null);
}