]> git.wh0rd.org Git - tt-rss.git/commitdiff
block feed editor dialog for tags, labels and such
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 1 Jan 2007 11:55:14 +0000 (12:55 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 1 Jan 2007 11:55:14 +0000 (12:55 +0100)
tt-rss.js

index 533dd4f131a6a67d3f3768cef1cd15029156bba6..66f6bff3dda6efaad952ad14649a5dd0aa278003 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -580,6 +580,11 @@ function editFeedDlg(feed) {
                return;
        }
 
+       if (feed <= 0 || active_feed_is_cat || tagsAreDisplayed()) {
+               alert("You can't edit this kind of feed.");
+               return;
+       }
+
        if (xmlhttp_ready(xmlhttp)) {
                xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=editfeed&id=" +
                        param_escape(feed), true);