]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: code cleanup
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 12 Jan 2010 09:17:43 +0000 (12:17 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 12 Jan 2010 09:17:43 +0000 (12:17 +0300)
modules/pref-feeds.php
modules/pref-filters.php
modules/pref-labels.php
modules/pref-users.php
prefs.js

index df764af6248cfc926e3ee3a1062093254545062a..190d8905528bee176c9f5059f2a33b44962397a8 100644 (file)
                        </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()\"
index afa8eb31260cbc5a447b48821718f57095bfc02f..a506ff1fa436a03fb2302bf233377df1413cf849 100644 (file)
                print "<input type=\"submit\" 
                        class=\"button\" 
                        onclick=\"return displayDlg('quickAddFilter', false)\" 
-                       id=\"create_filter_btn\"
                        value=\"".__('Create filter')."\"> "; 
 
                print "<input type=\"submit\" class=\"button\"
index a6324c7a2b70fb6128fb8402319d2c30547154a7..af343cacda8b895b7213d0a67de721d81d434d16 100644 (file)
                print "<div class=\"prefGenericAddBox\">";
 
                print"<input type=\"submit\" class=\"button\" 
-                       id=\"label_create_btn\"
                        onclick=\"return addLabel()\" 
                        value=\"".__('Create label')."\"> ";
 
index 7c47a3dbf2e08b82bbf134497f2ed9efc49ddd76..a19a594c1046394816ff66a8f1cea61e6db4bc0c 100644 (file)
                }
 
                print "<input type=\"submit\" class=\"button\" 
-                       id=\"user_add_btn\" 
                        onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">";
 
                print "                         
index 8bacbfddb7b532fdb3219d13f46f23989c525030..ae17607295b6e965e1fac34c31d6e6a49e20e31b 100644 (file)
--- 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", {