From a349077cc4d2365a74d95907fdc5f648cfa38659 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 14 May 2007 07:04:55 +0100 Subject: [PATCH] prefs: recolor category editor, block top25/subscribe buttons when pane has active dialog --- modules/pref-feeds.php | 3 ++- prefs.js | 24 ++++++++++++++++++++++++ tt-rss.css | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 18107f956..ab2ac0849 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -768,11 +768,12 @@ onclick=\"addFeed()\" value=\"".__('Subscribe')."\">"; */ print ""; if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { print " "; } diff --git a/prefs.js b/prefs.js index 6901b08cf..30a8928d7 100644 --- 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); diff --git a/tt-rss.css b/tt-rss.css index f834ff308..f8ada76dd 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -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; }