]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref dialog fixes
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 16 May 2008 07:53:49 +0000 (08:53 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 16 May 2008 07:53:49 +0000 (08:53 +0100)
help/4.php
prefs.js

index 35f4baf1fda91fb78cb8c6a09c40241a0081eb4c..0631ef17aaf07503f551e85d559d6bd4934cead9 100644 (file)
@@ -20,6 +20,7 @@
 
        <table>
                <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 l</td><td><?php echo __("Create label") ?></td></tr>
                <!-- <tr><td class='n'>c u</td><td><?php echo __("Create user") ?></td></tr> -->
index 6dcf412ab7902c16d200c216eb5d9e440bb8ea60..8c0b84127535914ad4246529726d05dbcc29fb18 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -787,9 +787,8 @@ function feedEditCancel() {
                return
        }
 
-       document.getElementById("subscribe_to_feed_btn").disabled = false;
-
        try {
+               document.getElementById("subscribe_to_feed_btn").disabled = false;
                document.getElementById("top25_feeds_btn").disabled = false;
        } catch (e) {
                // this button is not always available, no-op if not found
@@ -876,11 +875,13 @@ function labelEditCancel() {
                return
        }
 
-       document.getElementById("label_create_btn").disabled = false;
+       try {
+               document.getElementById("label_create_btn").disabled = false;
+               selectPrefRows('label', false); // cleanup feed selection
+       } catch (e) { }
 
        active_label = false;
 
-       selectPrefRows('label', false); // cleanup feed selection
        closeInfoBox();
 
        return false;
@@ -906,9 +907,11 @@ function filterEditCancel() {
                return
        }
 
-       document.getElementById("create_filter_btn").disabled = false;
-       
-       selectPrefRows('filter', false); // cleanup feed selection
+       try {
+               document.getElementById("create_filter_btn").disabled = false;
+               selectPrefRows('filter', false); // cleanup feed selection
+       } catch (e) { }
+
        closeInfoBox();
 
        return false;
@@ -1766,6 +1769,10 @@ function pref_hotkey_handler(e) {
                                // no-op
                        }
 
+                       if (keycode == 67) { // c
+                               return editFeedCats();
+                       }
+
                }
 
                /* Prefix g */