mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 16:41:29 +00:00
misc feed edit dialog fixes
This commit is contained in:
@@ -1564,8 +1564,10 @@ function getSelectedTableRowIds(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function editFeed(feed, event) {
|
function editFeed(feed, event) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (feed <= 0)
|
||||||
|
return alert(__("You can't edit this kind of feed."));
|
||||||
|
|
||||||
var query = "backend.php?op=pref-feeds&subop=editfeed&id=" +
|
var query = "backend.php?op=pref-feeds&subop=editfeed&id=" +
|
||||||
param_escape(feed);
|
param_escape(feed);
|
||||||
|
|
||||||
|
|||||||
10
tt-rss.js
10
tt-rss.js
@@ -376,7 +376,11 @@ function quickMenuGo(opid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (opid == "qmcEditFeed") {
|
if (opid == "qmcEditFeed") {
|
||||||
|
if (activeFeedIsCat())
|
||||||
|
alert(__("You can't edit this kind of feed."));
|
||||||
|
else
|
||||||
editFeed(getActiveFeedId());
|
editFeed(getActiveFeedId());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opid == "qmcRemoveFeed") {
|
if (opid == "qmcRemoveFeed") {
|
||||||
@@ -843,7 +847,13 @@ function hotkey_handler(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 69) { // e
|
if (keycode == 69) { // e
|
||||||
|
|
||||||
|
if (activeFeedIsCat())
|
||||||
|
alert(__("You can't edit this kind of feed."));
|
||||||
|
else
|
||||||
editFeed(getActiveFeedId());
|
editFeed(getActiveFeedId());
|
||||||
|
return;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user