mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-30 12:30:52 +02:00
remove label: do not reload headlines
This commit is contained in:
parent
9bf3f101cc
commit
1c9c602534
|
@ -431,14 +431,33 @@
|
||||||
|
|
||||||
$label = label_find_caption($link, $label_id, $_SESSION["uid"]);
|
$label = label_find_caption($link, $label_id, $_SESSION["uid"]);
|
||||||
|
|
||||||
|
print "<rpc-reply>";
|
||||||
|
print "<info-for-headlines>";
|
||||||
|
|
||||||
if ($label) {
|
if ($label) {
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
label_remove_article($link, $id, $label, $_SESSION["uid"]);
|
label_remove_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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -873,7 +873,8 @@ function selectionRemoveLabel(id) {
|
||||||
|
|
||||||
new Ajax.Request(query, {
|
new Ajax.Request(query, {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
viewCurrentFeed();
|
show_labels_in_headlines(transport);
|
||||||
|
all_counters_callback2(transport);
|
||||||
} });
|
} });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user