1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:45:55 +00:00

quickAddFilter: prefill current feed in the dialog

This commit is contained in:
Andrew Dolgov
2012-08-26 16:54:47 +04:00
parent 4c9d0490c6
commit da1da2e4d8
2 changed files with 12 additions and 3 deletions

View File

@@ -940,7 +940,14 @@ function quickAddFeed() {
function quickAddFilter() {
try {
var query = "backend.php?op=dlg&method=quickAddFilter";
var query = "";
if (!inPreferences()) {
query = "backend.php?op=dlg&method=quickAddFilter&feed=" +
param_escape(getActiveFeedId()) + "&is_cat=" +
param_escape(activeFeedIsCat());
} else {
query = "backend.php?op=dlg&method=quickAddFilter";
}
if (dijit.byId("feedEditDlg"))
dijit.byId("feedEditDlg").destroyRecursive();