summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-18 16:07:31 +0100
committerAndrew Dolgov <[email protected]>2009-01-18 16:07:31 +0100
commitf92471951b6bf7f3e11a7c9e584cb6eff5d8c233 (patch)
tree80b675c63ad708341b05e1762215f52179f8e013 /modules
parent1380f8eed4015a2759f9f49e9c90145c464ecd0c (diff)
dynamically show new label markers in headlines buffer w/o reload
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 918f8ca90..22a926412 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -450,14 +450,34 @@
$label = label_find_caption($link, $label_id, $_SESSION["uid"]);
+ print "<rpc-reply>";
+
+ print "<info-for-headlines>";
+
if ($label) {
foreach ($ids as $id) {
label_add_article($link, $id, $label, $_SESSION["uid"]);
+
+ print "<entry id=\"$id\"><![CDATA[";
+
+ $labels = get_article_labels($link, $id, $_SESSION["uid"]);
+
+ foreach ($labels as $l) {
+ print "<span class='hlLabelRef'>".$l[1]."</span>";
+ }
+
+ print "]]></entry>";
+
}
}
- print "<rpc-reply>OK</rpc-reply>";
+ print "</info-for-headlines>";
+
+ print "<counters>";
+ getAllCounters($link, $omode);
+ print "</counters>";
+ print "</rpc-reply>";
return;
}