]> git.wh0rd.org - tt-rss.git/commitdiff
prefs: code cleanup
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Jan 2009 16:51:18 +0000 (17:51 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Jan 2009 16:51:18 +0000 (17:51 +0100)
prefs.js

index 9d46cde2b6f10f421290d26bbabb6935ae80233a..83d43670bc1db6bb04ac1364d71b20a9a3dd6b8c 100644 (file)
--- 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)) {