prefs: recolor category editor, block top25/subscribe buttons when pane has active dialog

master
Andrew Dolgov 18 years ago
parent 365f95dc87
commit a349077cc4

@ -768,11 +768,12 @@
onclick=\"addFeed()\" value=\"".__('Subscribe')."\">"; */ onclick=\"addFeed()\" value=\"".__('Subscribe')."\">"; */
print "<input onclick=\"javascript:displayDlg('quickAddFeed')\" 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')."\">"; class=\"button\" value=\"".__('Subscribe to feed')."\">";
if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
print " <input type=\"submit\" class=\"button\" print " <input type=\"submit\" class=\"button\"
id=\"top25_feeds_btn\"
onclick=\"javascript:browseFeeds()\" value=\"".__('Top 25')."\">"; onclick=\"javascript:browseFeeds()\" value=\"".__('Top 25')."\">";
} }

@ -408,6 +408,14 @@ function editFeed(feed) {
notify_progress("Loading, please wait..."); 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 // clean selection from all rows & select row being edited
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false); selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true); selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
@ -637,6 +645,14 @@ function feedEditCancel() {
return 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(); closeInfoBox();
selectPrefRows('feed', false); // cleanup feed selection selectPrefRows('feed', false); // cleanup feed selection
@ -1633,6 +1649,14 @@ function editFeedCats() {
return 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.open("GET", "backend.php?op=pref-feeds&subop=editCats", true);
xmlhttp.onreadystatechange=infobox_callback; xmlhttp.onreadystatechange=infobox_callback;
xmlhttp.send(null); xmlhttp.send(null);

@ -438,7 +438,7 @@ table.prefFeedList td.feedSelect {
div.prefFeedCatHolder { div.prefFeedCatHolder {
height : 250px; height : 250px;
overflow : auto; overflow : auto;
border : 1px solid #88b0f0; border : 1px solid #99d67a;
margin : 5px 0px 5px 0px; margin : 5px 0px 5px 0px;
} }

Loading…
Cancel
Save