mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-01 17:29:16 +00:00
add dialogue to remove current feed, overall quick meny improvements (shamelessly stolen from GMail)
This commit is contained in:
26
backend.php
26
backend.php
@@ -1317,6 +1317,7 @@
|
||||
|
||||
if ($op == "dlg") {
|
||||
$id = $_GET["id"];
|
||||
$param = $_GET["param"];
|
||||
|
||||
if ($id == "quickAddFeed") {
|
||||
print "Feed URL: <input id=\"qafInput\">
|
||||
@@ -1326,6 +1327,31 @@
|
||||
type=\"submit\" onclick=\"javascript:closeDlg()\"
|
||||
value=\"Cancel\">";
|
||||
}
|
||||
|
||||
if ($id == "quickDelFeed") {
|
||||
|
||||
$param = db_escape_string($param);
|
||||
|
||||
$result = db_query($link, "SELECT title FROM ttrss_feeds WHERE id = '$param'");
|
||||
|
||||
if ($result) {
|
||||
|
||||
$f_title = db_fetch_result($result, 0, "title");
|
||||
|
||||
print "Remove current feed ($f_title)?
|
||||
<input class=\"button\"
|
||||
type=\"submit\" onclick=\"javascript:qfdDelete($param)\" value=\"Remove\">
|
||||
<input class=\"button\"
|
||||
type=\"submit\" onclick=\"javascript:closeDlg()\"
|
||||
value=\"Cancel\">";
|
||||
} else {
|
||||
print "Error: Feed $param not found.
|
||||
<input class=\"button\"
|
||||
type=\"submit\" onclick=\"javascript:closeDlg()\"
|
||||
value=\"Cancel\">";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
db_close($link);
|
||||
|
||||
Reference in New Issue
Block a user