summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-20 17:51:18 +0100
committerAndrew Dolgov <[email protected]>2009-01-20 17:51:18 +0100
commit3381c755bef4358750dcbd90986747e37c632651 (patch)
tree1d12b0afb71ef9ba67bbce7194ac783800b21823 /prefs.js
parent8f70815592e1647e659e5005c508a5869a148b60 (diff)
prefs: code cleanup
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js27
1 files changed, 6 insertions, 21 deletions
diff --git a/prefs.js b/prefs.js
index 9d46cde2b..83d43670b 100644
--- a/prefs.js
+++ b/prefs.js
@@ -814,7 +814,12 @@ function feedCatEditCancel() {
active_feed_cat = false;
-// notify("Operation cancelled.");
+ try {
+ document.getElementById("subscribe_to_feed_btn").disabled = false;
+ document.getElementById("top25_feeds_btn").disabled = false;
+ } catch (e) {
+ // this button is not always available, no-op if not found
+ }
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats", true);
xmlhttp.onreadystatechange=infobox_callback;
@@ -852,26 +857,6 @@ function feedEditSave() {
}
}
-function feedCatEditSave() {
-
- if (!xmlhttp_ready(xmlhttp)) {
- printLockingError();
- return
- }
-
- notify_progress("Saving category...");
-
- var query = Form.serialize("feed_cat_edit_form");
-
- xmlhttp.open("GET", "backend.php?" + query, true);
- xmlhttp.onreadystatechange=infobox_callback;
- xmlhttp.send(null);
-
- active_feed_cat = false;
-
- return false;
-}
-
function userEditCancel() {
if (!xmlhttp_ready(xmlhttp)) {