diff options
author | Andrew Dolgov <[email protected]> | 2009-01-18 10:09:52 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-18 10:09:52 +0100 |
commit | 933ba4ee9c7c9f2cf5bcef5598272db8295a2157 (patch) | |
tree | 7655334b4878ac5357ef7403a65bc57f4d6da24c /viewfeed.js | |
parent | b8a637f3d2eff88de1d2d76d9014cc0a4086d9d1 (diff) |
assorted labels bugfixes and UI work
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js index b0cb068e1..a11638936 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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 { |