1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 00:01:29 +00:00

assorted labels bugfixes and UI work

This commit is contained in:
Andrew Dolgov
2009-01-18 10:09:52 +01:00
parent b8a637f3d2
commit 933ba4ee9c
3 changed files with 79 additions and 40 deletions

View File

@@ -424,6 +424,25 @@
return;
}
if ($subop == "removeFromLabel") {
$ids = split(",", db_escape_string($_REQUEST["ids"]));
$label_id = db_escape_string($_REQUEST["lid"]);
$label = label_find_caption($link, $label_id, $_SESSION["uid"]);
if ($label) {
foreach ($ids as $id) {
label_remove_article($link, $id, $label, $_SESSION["uid"]);
}
}
print "<rpc-reply>OK</rpc-reply>";
return;
}
if ($subop == "assignToLabel") {
$ids = split(",", db_escape_string($_REQUEST["ids"]));