prefs: code cleanup
This commit is contained in:
parent
43f0968ef1
commit
27179741c1
5 changed files with 1 additions and 22 deletions
|
@ -1132,7 +1132,7 @@
|
|||
</div>";
|
||||
|
||||
print "<input onclick=\"javascript:displayDlg('quickAddFeed')\"
|
||||
type=\"submit\" id=\"subscribe_to_feed_btn\"
|
||||
type=\"submit\"
|
||||
class=\"button\" value=\"".__('Subscribe to feed')."\"> ";
|
||||
|
||||
print "<input onclick=\"javascript:editSelectedFeed()\"
|
||||
|
|
|
@ -314,7 +314,6 @@
|
|||
print "<input type=\"submit\"
|
||||
class=\"button\"
|
||||
onclick=\"return displayDlg('quickAddFilter', false)\"
|
||||
id=\"create_filter_btn\"
|
||||
value=\"".__('Create filter')."\"> ";
|
||||
|
||||
print "<input type=\"submit\" class=\"button\"
|
||||
|
|
|
@ -135,7 +135,6 @@
|
|||
print "<div class=\"prefGenericAddBox\">";
|
||||
|
||||
print"<input type=\"submit\" class=\"button\"
|
||||
id=\"label_create_btn\"
|
||||
onclick=\"return addLabel()\"
|
||||
value=\"".__('Create label')."\"> ";
|
||||
|
||||
|
|
|
@ -370,7 +370,6 @@
|
|||
}
|
||||
|
||||
print "<input type=\"submit\" class=\"button\"
|
||||
id=\"user_add_btn\"
|
||||
onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">";
|
||||
|
||||
print "
|
||||
|
|
18
prefs.js
18
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", {
|
||||
|
|
Loading…
Reference in a new issue