]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: recolor category editor, block top25/subscribe buttons when pane has active...
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 06:04:55 +0000 (07:04 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 06:04:55 +0000 (07:04 +0100)
modules/pref-feeds.php
prefs.js
tt-rss.css

index 18107f9562d5f9ba39a7673d7c756c6ffea02c7a..ab2ac0849913232dfddb54ffe1b521c5a4b75b58 100644 (file)
                                onclick=\"addFeed()\" value=\"".__('Subscribe')."\">"; */
 
                print "<input onclick=\"javascript:displayDlg('quickAddFeed')\"
-                       type=\"submit\" id=\"fadd_subscribe_btn\" 
+                       type=\"submit\" id=\"subscribe_to_feed_btn\" 
                        class=\"button\" value=\"".__('Subscribe to feed')."\">"; 
 
                if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
                        print " <input type=\"submit\" class=\"button\"
+                               id=\"top25_feeds_btn\"
                                onclick=\"javascript:browseFeeds()\" value=\"".__('Top 25')."\">";
                }
 
index 6901b08cf5b19cc3dd00f5e890f30658c5961988..30a8928d796ff11528f7bb8dabcf38f3791ace32 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -408,6 +408,14 @@ function editFeed(feed) {
 
        notify_progress("Loading, please wait...");
 
+       document.getElementById("subscribe_to_feed_btn").disabled = true;
+
+       try {
+               document.getElementById("top25_feeds_btn").disabled = true;
+       } catch (e) {
+               // this button is not always available, no-op if not found
+       }
+
        // clean selection from all rows & select row being edited
        selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
        selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
@@ -637,6 +645,14 @@ function feedEditCancel() {
                return
        }
 
+       document.getElementById("subscribe_to_feed_btn").disabled = false;
+
+       try {
+               document.getElementById("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
@@ -1633,6 +1649,14 @@ function editFeedCats() {
                return
        }
 
+       document.getElementById("subscribe_to_feed_btn").disabled = true;
+
+       try {
+               document.getElementById("top25_feeds_btn").disabled = true;
+       } catch (e) {
+               // this button is not always available, no-op if not found
+       }
+
        xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editCats", true);
        xmlhttp.onreadystatechange=infobox_callback;
        xmlhttp.send(null);
index f834ff3082ec21bd7f025c51ad358ec962aff109..f8ada76dda098227185d31646b4d4bb66ad9a5a6 100644 (file)
@@ -438,7 +438,7 @@ table.prefFeedList td.feedSelect {
 div.prefFeedCatHolder {
        height : 250px;
        overflow : auto;
-       border : 1px solid #88b0f0;
+       border : 1px solid #99d67a;
        margin : 5px 0px 5px 0px;
 }