From 27179741c1d91427700270effceb96bd6c1852d9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 12 Jan 2010 12:17:43 +0300 Subject: [PATCH] prefs: code cleanup --- modules/pref-feeds.php | 2 +- modules/pref-filters.php | 1 - modules/pref-labels.php | 1 - modules/pref-users.php | 1 - prefs.js | 18 ------------------ 5 files changed, 1 insertion(+), 22 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index df764af6..190d8905 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1132,7 +1132,7 @@ "; print " "; print " "; print ""; print" "; diff --git a/modules/pref-users.php b/modules/pref-users.php index 7c47a3db..a19a594c 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -370,7 +370,6 @@ } print ""; print " diff --git a/prefs.js b/prefs.js index 8bacbfdd..ae176072 100644 --- a/prefs.js +++ b/prefs.js @@ -710,13 +710,6 @@ function removeSelectedFeedCats() { function feedEditCancel() { - try { - $("subscribe_to_feed_btn").disabled = false; - $("top25_feeds_btn").disabled = false; - } catch (e) { - // this button is not always available, no-op if not found - } - closeInfoBox(); selectPrefRows('feed', false); // cleanup feed selection @@ -760,7 +753,6 @@ function userEditCancel() { function filterEditCancel() { try { - $("create_filter_btn").disabled = false; selectPrefRows('filter', false); // cleanup feed selection } catch (e) { } @@ -810,8 +802,6 @@ function filterEditSave() { var query = "?" + Form.serialize("filter_edit_form"); closeInfoBox(); - - $("create_filter_btn").disabled = false; new Ajax.Request("backend.php", { parameters: query, @@ -1629,14 +1619,6 @@ function pref_hotkey_handler(e) { function editFeedCats() { try { - $("subscribe_to_feed_btn").disabled = true; - - try { - $("top25_feeds_btn").disabled = true; - } catch (e) { - // this button is not always available, no-op if not found - } - var query = "?op=pref-feeds&subop=editCats"; new Ajax.Request("backend.php", { -- 2.39.5