diff options
author | Andrew Dolgov <[email protected]> | 2012-08-26 16:54:47 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-26 16:54:47 +0400 |
commit | da1da2e4d8b3f17ac8f35817d4bb3d1f4b55fbbd (patch) | |
tree | 45fc3ea679c01cb91a2bdeb2a952deab37ad108f /js/functions.js | |
parent | 4c9d0490c6a8c724d04c246cd5ba3cf75ec80259 (diff) |
quickAddFilter: prefill current feed in the dialog
Diffstat (limited to 'js/functions.js')
-rw-r--r-- | js/functions.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/functions.js b/js/functions.js index 65d214ae5..3aa730359 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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(); |