mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-20 11:16:36 +02:00
quick unsubscribe prompt shows feed name
This commit is contained in:
parent
39541e74b2
commit
64a2875dcc
10
functions.js
10
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.");
|
alert("Please select some feed first.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var fn = getFeedName(actid);
|
||||||
|
|
||||||
if (confirm("Unsubscribe from current feed?")) {
|
if (confirm("Unsubscribe from " + fn + "?")) {
|
||||||
qfdDelete(actid);
|
qfdDelete(actid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user