From: Andrew Dolgov Date: Wed, 24 May 2006 03:15:04 +0000 (+0100) Subject: quick unsubscribe prompt shows feed name X-Git-Tag: 1.2.0~23 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=64a2875dcc6cb847ffdd43196bf27b5019e12419;p=tt-rss.git quick unsubscribe prompt shows feed name --- diff --git a/functions.js b/functions.js index e58a9703..f7e29888 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 0b00737a..9e6d70c7 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); }