pref dialog fixes

This commit is contained in:
Andrew Dolgov 2008-05-16 08:53:49 +01:00
parent 525ea55e48
commit 57f734c895
2 changed files with 15 additions and 7 deletions

View File

@ -20,6 +20,7 @@
<table> <table>
<tr><td class='n'>c s</td><td><?php echo __("Subscribe to feed") ?></td></tr> <tr><td class='n'>c s</td><td><?php echo __("Subscribe to feed") ?></td></tr>
<tr><td class='n'>c c</td><td><?php echo __("Edit feed categories") ?></td></tr>
<tr><td class='n'>c f</td><td><?php echo __("Create filter") ?></td></tr> <tr><td class='n'>c f</td><td><?php echo __("Create filter") ?></td></tr>
<tr><td class='n'>c l</td><td><?php echo __("Create label") ?></td></tr> <tr><td class='n'>c l</td><td><?php echo __("Create label") ?></td></tr>
<!-- <tr><td class='n'>c u</td><td><?php echo __("Create user") ?></td></tr> --> <!-- <tr><td class='n'>c u</td><td><?php echo __("Create user") ?></td></tr> -->

View File

@ -787,9 +787,8 @@ function feedEditCancel() {
return return
} }
document.getElementById("subscribe_to_feed_btn").disabled = false;
try { try {
document.getElementById("subscribe_to_feed_btn").disabled = false;
document.getElementById("top25_feeds_btn").disabled = false; document.getElementById("top25_feeds_btn").disabled = false;
} catch (e) { } catch (e) {
// this button is not always available, no-op if not found // this button is not always available, no-op if not found
@ -876,11 +875,13 @@ function labelEditCancel() {
return return
} }
try {
document.getElementById("label_create_btn").disabled = false; document.getElementById("label_create_btn").disabled = false;
selectPrefRows('label', false); // cleanup feed selection
} catch (e) { }
active_label = false; active_label = false;
selectPrefRows('label', false); // cleanup feed selection
closeInfoBox(); closeInfoBox();
return false; return false;
@ -906,9 +907,11 @@ function filterEditCancel() {
return return
} }
try {
document.getElementById("create_filter_btn").disabled = false; document.getElementById("create_filter_btn").disabled = false;
selectPrefRows('filter', false); // cleanup feed selection selectPrefRows('filter', false); // cleanup feed selection
} catch (e) { }
closeInfoBox(); closeInfoBox();
return false; return false;
@ -1766,6 +1769,10 @@ function pref_hotkey_handler(e) {
// no-op // no-op
} }
if (keycode == 67) { // c
return editFeedCats();
}
} }
/* Prefix g */ /* Prefix g */