summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-20 08:29:39 +0100
committerAndrew Dolgov <[email protected]>2007-08-20 08:29:39 +0100
commit11f083e73b0543bb5fb5f1dfa85ca00bbb374505 (patch)
tree113834be855148505c74ec33fbd14fb3e66a2dcc /prefs.js
parent768858f1e3453a4ebbaedde9280d3bc0e5235c03 (diff)
rework feed category edit box
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js27
1 files changed, 26 insertions, 1 deletions
diff --git a/prefs.js b/prefs.js
index b1739bc95..edd1627d1 100644
--- a/prefs.js
+++ b/prefs.js
@@ -207,6 +207,31 @@ function changepass_callback() {
}
}
+function infobox_feed_cat_callback() {
+ if (xmlhttp.readyState == 4) {
+ try {
+
+ infobox_callback();
+
+ if (document.getElementById("prefFeedCatList")) {
+ var elems = document.getElementById("prefFeedCatList").getElementsByTagName("SPAN");
+
+ for (var i = 0; i < elems.length; i++) {
+ if (elems[i].id && elems[i].id.match("FCATT-")) {
+ var cat_id = elems[i].id.replace("FCATT-", "");
+
+ new Ajax.InPlaceEditor(elems[i],
+ 'backend.php?op=pref-feeds&subop=editCats&action=save&cid=' + cat_id);
+ }
+ }
+ }
+
+ } catch (e) {
+ exception_error("infobox_feed_cat_callback", e);
+ }
+ }
+}
+
function updateFeedList(sort_key) {
if (!xmlhttp_ready(xmlhttp)) {
@@ -1615,7 +1640,7 @@ function editFeedCats() {
}
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats", true);
- xmlhttp.onreadystatechange=infobox_callback;
+ xmlhttp.onreadystatechange=infobox_feed_cat_callback;
xmlhttp.send(null);
}