]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
misc feed edit dialog fixes
[tt-rss.git] / tt-rss.js
index 1559530b8a4854621421921b3b51da18b0524cfd..4ab357363b62a465f54f944cbfb56baf2e3eab2a 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -376,7 +376,11 @@ function quickMenuGo(opid) {
                }
 
                if (opid == "qmcEditFeed") {
-                       editFeed(getActiveFeedId());
+                       if (activeFeedIsCat())
+                               alert(__("You can't edit this kind of feed."));
+                       else
+                               editFeed(getActiveFeedId());
+                       return;
                }
        
                if (opid == "qmcRemoveFeed") {
@@ -843,7 +847,13 @@ function hotkey_handler(e) {
                        }
 
                        if (keycode == 69) { // e
-                               editFeed(getActiveFeedId());
+
+                               if (activeFeedIsCat())
+                                       alert(__("You can't edit this kind of feed."));
+                               else
+                                       editFeed(getActiveFeedId());
+                               return;
+
                                return false;
                        }