mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:05:55 +00:00
prefs: code cleanup
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user