summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-29 10:11:43 +0100
committerAndrew Dolgov <[email protected]>2005-11-29 10:11:43 +0100
commitf932bc9ff3632ccee1d1c9a00750869ef43ca484 (patch)
tree79eadfd67a2ceaac0064a134ad39c7d7e7031843 /prefs.js
parente454a88980cbeba813b7471676c1af1e2128af03 (diff)
support for changing category of selected feeds, misc RPC security fixes and prefs interface improvements
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js36
1 files changed, 35 insertions, 1 deletions
diff --git a/prefs.js b/prefs.js
index 59af58fd1..421b06a63 100644
--- a/prefs.js
+++ b/prefs.js
@@ -171,8 +171,13 @@ function updateFeedList(sort_key) {
p_notify("Loading, please wait...");
+ var feed_search = document.getElementById("feed_search");
+ var search = "";
+ if (feed_search) { search = feed_search.value; }
+
xmlhttp.open("GET", "backend.php?op=pref-feeds" +
- "&sort=" + param_escape(sort_key), true);
+ "&sort=" + param_escape(sort_key) +
+ "&search=" + param_escape(search), true);
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);
@@ -1171,3 +1176,32 @@ function closeInfoBox() {
box.style.display = "none";
}
}
+
+function categorizeSelectedFeeds() {
+
+ if (!xmlhttp_ready(xmlhttp)) {
+ printLockingError();
+ return
+ }
+
+ var sel_rows = getSelectedFeeds();
+
+ var cat_sel = document.getElementById("sfeed_set_fcat");
+ var cat_id = cat_sel[cat_sel.selectedIndex].id;
+
+ if (sel_rows.length > 0) {
+
+ notify("Changing category of selected feeds...");
+
+ xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=categorize&ids="+
+ param_escape(sel_rows.toString()) + "&cat_id=" + param_escape(cat_id), true);
+ xmlhttp.onreadystatechange=feedlist_callback;
+ xmlhttp.send(null);
+
+ } else {
+
+ notify("Please select some feeds first.");
+
+ }
+
+}