diff options
author | Andrew Dolgov <[email protected]> | 2006-05-24 04:15:04 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-05-24 04:15:04 +0100 |
commit | 64a2875dcc6cb847ffdd43196bf27b5019e12419 (patch) | |
tree | f7e2e0d732b577befad9b4e0a997737682555ef3 | |
parent | 39541e74b2a7979eabe0ca3ddd28cf1022286535 (diff) |
quick unsubscribe prompt shows feed name
-rw-r--r-- | functions.js | 10 | ||||
-rw-r--r-- | tt-rss.js | 4 |
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; + } +} @@ -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); } |