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

add search-to-label converter, ability to unsubscribe from label, various label fixes

This commit is contained in:
Andrew Dolgov
2006-08-01 08:54:46 +01:00
parent e939722a14
commit 88040f5795
4 changed files with 172 additions and 54 deletions

View File

@@ -325,6 +325,31 @@ function catchupPage() {
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
}
function labelFromSearch(search, search_mode, match_on, feed_id, is_cat) {
if (!xmlhttp_ready(xmlhttp_rpc)) {
printLockingError();
}
var title = prompt("Please enter label title:", "");
if (title) {
var query = "backend.php?op=labelFromSearch&search=" + param_escape(search) +
"&smode=" + param_escape(search_mode) + "&match=" + param_escape(match_on) +
"&feed=" + param_escape(feed_id) + "&is_cat=" + param_escape(is_cat) +
"&title=" + param_escape(title);
debug("LFS: " + query);
xmlhttp_rpc.open("GET", query, true);
xmlhttp_rpc.onreadystatechange=getMainContext().dlg_frefresh_callback;
xmlhttp_rpc.send(null);
}
}
function init() {
if (arguments.callee.done) return;
@@ -341,5 +366,5 @@ function init() {
var bt = document.getElementById("headlineActionsBottom");
bt.className = "headlinesSubToolbar";
}
}