From 933ba4ee9c7c9f2cf5bcef5598272db8295a2157 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 18 Jan 2009 10:09:52 +0100 Subject: assorted labels bugfixes and UI work --- modules/backend-rpc.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'modules/backend-rpc.php') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 691771f73..4b67e1b38 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -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 "OK"; + + return; + } + if ($subop == "assignToLabel") { $ids = split(",", db_escape_string($_REQUEST["ids"])); -- cgit v1.2.3