prefs: code cleanup

master
Andrew Dolgov 15 years ago
parent 43f0968ef1
commit 27179741c1

@ -1132,7 +1132,7 @@
</div>"; </div>";
print "<input onclick=\"javascript:displayDlg('quickAddFeed')\" print "<input onclick=\"javascript:displayDlg('quickAddFeed')\"
type=\"submit\" id=\"subscribe_to_feed_btn\" type=\"submit\"
class=\"button\" value=\"".__('Subscribe to feed')."\"> "; class=\"button\" value=\"".__('Subscribe to feed')."\"> ";
print "<input onclick=\"javascript:editSelectedFeed()\" print "<input onclick=\"javascript:editSelectedFeed()\"

@ -314,7 +314,6 @@
print "<input type=\"submit\" print "<input type=\"submit\"
class=\"button\" class=\"button\"
onclick=\"return displayDlg('quickAddFilter', false)\" onclick=\"return displayDlg('quickAddFilter', false)\"
id=\"create_filter_btn\"
value=\"".__('Create filter')."\"> "; value=\"".__('Create filter')."\"> ";
print "<input type=\"submit\" class=\"button\" print "<input type=\"submit\" class=\"button\"

@ -135,7 +135,6 @@
print "<div class=\"prefGenericAddBox\">"; print "<div class=\"prefGenericAddBox\">";
print"<input type=\"submit\" class=\"button\" print"<input type=\"submit\" class=\"button\"
id=\"label_create_btn\"
onclick=\"return addLabel()\" onclick=\"return addLabel()\"
value=\"".__('Create label')."\"> "; value=\"".__('Create label')."\"> ";

@ -370,7 +370,6 @@
} }
print "<input type=\"submit\" class=\"button\" print "<input type=\"submit\" class=\"button\"
id=\"user_add_btn\"
onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">"; onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">";
print " print "

@ -710,13 +710,6 @@ function removeSelectedFeedCats() {
function feedEditCancel() { 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(); closeInfoBox();
selectPrefRows('feed', false); // cleanup feed selection selectPrefRows('feed', false); // cleanup feed selection
@ -760,7 +753,6 @@ function userEditCancel() {
function filterEditCancel() { function filterEditCancel() {
try { try {
$("create_filter_btn").disabled = false;
selectPrefRows('filter', false); // cleanup feed selection selectPrefRows('filter', false); // cleanup feed selection
} catch (e) { } } catch (e) { }
@ -810,8 +802,6 @@ function filterEditSave() {
var query = "?" + Form.serialize("filter_edit_form"); var query = "?" + Form.serialize("filter_edit_form");
closeInfoBox(); closeInfoBox();
$("create_filter_btn").disabled = false;
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {
parameters: query, parameters: query,
@ -1629,14 +1619,6 @@ function pref_hotkey_handler(e) {
function editFeedCats() { function editFeedCats() {
try { 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"; var query = "?op=pref-feeds&subop=editCats";
new Ajax.Request("backend.php", { new Ajax.Request("backend.php", {

Loading…
Cancel
Save