1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:25:56 +00:00

dynamically show new label markers in headlines buffer w/o reload

This commit is contained in:
Andrew Dolgov
2009-01-18 16:07:31 +01:00
parent 1380f8eed4
commit f92471951b
4 changed files with 56 additions and 3 deletions

View File

@@ -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;
}