1
0
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:
Andrew Dolgov
2009-01-18 10:09:52 +01:00
parent b8a637f3d2
commit 933ba4ee9c
3 changed files with 79 additions and 40 deletions

View File

@@ -850,6 +850,38 @@ function toggleUnread(id, cmode, effect) {
}
}
function selectionRemoveLabel(id) {
try {
var ids = getSelectedArticleIds2();
if (ids.length == 0) {
alert(__("No articles are selected."));
return;
}
var ok = confirm(__("Remove selected articles from label?"));
if (ok) {
var query = "backend.php?op=rpc&subop=removeFromLabel&ids=" +
param_escape(ids.toString()) + "&lid=" + param_escape(id);
// notify_progress("Loading, please wait...");
new Ajax.Request(query, {
onComplete: function(transport) {
viewCurrentFeed();
} });
}
} catch (e) {
exception_error("selectionAssignLabel", e);
}
}
function selectionAssignLabel(id) {
try {