mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
automatically add active article title in create filter dialog
This commit is contained in:
@@ -1058,6 +1058,17 @@ function quickAddFilter() {
|
||||
href: query});
|
||||
|
||||
dialog.show();
|
||||
|
||||
var lh = dojo.connect(dialog, "onLoad",
|
||||
function() {
|
||||
dojo.disconnect(lh);
|
||||
var title = $("PTITLE-FULL-" + active_post_id);
|
||||
|
||||
if (title) {
|
||||
$("filterDlg_regExp").value = title.innerHTML;
|
||||
}
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
exception_error("quickAddFilter", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user