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:
@@ -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"]));
|
||||
|
||||
Reference in New Issue
Block a user