quick unsubscribe prompt shows feed name

This commit is contained in:
Andrew Dolgov 2006-05-24 04:15:04 +01:00
parent 39541e74b2
commit 64a2875dcc
2 changed files with 12 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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);
}