summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-24 04:15:04 +0100
committerAndrew Dolgov <[email protected]>2006-05-24 04:15:04 +0100
commit64a2875dcc6cb847ffdd43196bf27b5019e12419 (patch)
treef7e2e0d732b577befad9b4e0a997737682555ef3
parent39541e74b2a7979eabe0ca3ddd28cf1022286535 (diff)
quick unsubscribe prompt shows feed name
-rw-r--r--functions.js10
-rw-r--r--tt-rss.js4
2 files changed, 12 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index e58a97036..f7e298888 100644
--- a/functions.js
+++ b/functions.js
@@ -1181,4 +1181,12 @@ function fatalError(code, message) {
}
}
-
+function getFeedName(id) {
+ var d = getFeedsContext().document;
+ var e = d.getElementById("FEEDN-" + id);
+ if (e) {
+ return e.innerHTML.stripTags();
+ } else {
+ return null;
+ }
+}
diff --git a/tt-rss.js b/tt-rss.js
index 0b00737af..9e6d70c73 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -436,8 +436,10 @@ function quickMenuGo(opid) {
alert("Please select some feed first.");
return;
}
+
+ var fn = getFeedName(actid);
- if (confirm("Unsubscribe from current feed?")) {
+ if (confirm("Unsubscribe from " + fn + "?")) {
qfdDelete(actid);
}