}
function editFeed(feed, event) {
-
try {
+ if (feed <= 0)
+ return alert(__("You can't edit this kind of feed."));
+
var query = "backend.php?op=pref-feeds&subop=editfeed&id=" +
param_escape(feed);
}
if (opid == "qmcEditFeed") {
- editFeed(getActiveFeedId());
+ if (activeFeedIsCat())
+ alert(__("You can't edit this kind of feed."));
+ else
+ editFeed(getActiveFeedId());
+ return;
}
if (opid == "qmcRemoveFeed") {
}
if (keycode == 69) { // e
- editFeed(getActiveFeedId());
+
+ if (activeFeedIsCat())
+ alert(__("You can't edit this kind of feed."));
+ else
+ editFeed(getActiveFeedId());
+ return;
+
return false;
}