misc feed edit dialog fixes

This commit is contained in:
Andrew Dolgov 2010-11-20 15:36:42 +03:00
parent e2eda97930
commit 33f31dfdfc
2 changed files with 15 additions and 3 deletions

View file

@ -1564,8 +1564,10 @@ function getSelectedTableRowIds(id) {
}
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);

View file

@ -376,7 +376,11 @@ function quickMenuGo(opid) {
}
if (opid == "qmcEditFeed") {
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
if (activeFeedIsCat())
alert(__("You can't edit this kind of feed."));
else
editFeed(getActiveFeedId());
return;
return false;
}